2016-08-19 14:36:03 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package sharpfont
|
|
|
|
|
#
|
|
|
|
|
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
Name: sharpfont
|
2020-07-16 12:20:28 +00:00
|
|
|
Version: 4.0.1
|
2016-08-19 14:36:03 +00:00
|
|
|
Release: 0
|
|
|
|
|
Url: https://github.com/Robmaister/SharpFont
|
|
|
|
|
Summary: Cross-platform FreeType bindings for .NET
|
|
|
|
|
License: MIT
|
|
|
|
|
Source: https://github.com/Robmaister/SharpFont/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
BuildArch: noarch
|
2017-05-17 15:00:42 +00:00
|
|
|
BuildRequires: fdupes
|
2016-08-19 14:36:03 +00:00
|
|
|
BuildRequires: pkgconfig(mono)
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
SharpFont is a library that provides FreeType bindings for .NET.
|
|
|
|
|
Everything from format-specific APIs to the caching subsystem are included.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Cross-platform FreeType bindings for .NET
|
|
|
|
|
Group: Development/Libraries/Other
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
SharpFont is a library that provides FreeType bindings for .NET.
|
|
|
|
|
Everything from format-specific APIs to the caching subsystem are included.
|
|
|
|
|
|
|
|
|
|
%prep
|
2020-07-16 12:20:28 +00:00
|
|
|
%setup -q -n SharpFont-%{version}
|
2016-08-19 14:36:03 +00:00
|
|
|
|
|
|
|
|
%build
|
2020-07-16 12:20:28 +00:00
|
|
|
pushd Source/SharpFont
|
|
|
|
|
xbuild /p:TargetFrameworkVersion=v4.5 /p:Configuration=Debug
|
2016-08-19 14:36:03 +00:00
|
|
|
|
|
|
|
|
%install
|
2017-05-17 15:00:42 +00:00
|
|
|
#manually sign delay-signed assemblies
|
2020-07-16 12:20:28 +00:00
|
|
|
find "Binaries/SharpFont/Debug" \( -name "*.dll" -o -name "*.exe" \) -print0 | while IFS= read -r -d $'\0' target; do
|
2017-05-17 15:00:42 +00:00
|
|
|
sn -v "$target" || if [[ $? = 1 ]]; then
|
|
|
|
|
echo "manually signing assembly: $target"
|
2020-07-16 12:20:28 +00:00
|
|
|
sn -R "$target" "Source/SharpFont.snk"
|
2017-05-17 15:00:42 +00:00
|
|
|
fi
|
|
|
|
|
done
|
|
|
|
|
|
2016-08-19 14:36:03 +00:00
|
|
|
mkdir -p %{buildroot}%{_prefix}/lib/mono/gac/
|
2020-07-16 12:20:28 +00:00
|
|
|
gacutil -i Binaries/SharpFont/Debug/SharpFont.dll -f -package %{name} -root %{buildroot}%{_prefix}/lib
|
|
|
|
|
cp -p Source/SharpFont.dll.config %{buildroot}%{_prefix}/lib/mono/%{name}/SharpFont.dll.config
|
2016-08-19 14:36:03 +00:00
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}/%{_datadir}/pkgconfig
|
2017-05-17 15:00:42 +00:00
|
|
|
pc_file="%{buildroot}/%{_datadir}/pkgconfig/%{name}.pc"
|
|
|
|
|
# text strings entered with "cat <<EOT" constructs sometimes may be SILENTLY broken by spec files validators used by OSC
|
2020-07-16 12:20:28 +00:00
|
|
|
echo "Name: SharpFont" > "$pc_file"
|
2017-05-17 15:00:42 +00:00
|
|
|
echo "Description: %{summary}" >> "$pc_file"
|
|
|
|
|
echo "Version: %{version}" >> "$pc_file"
|
|
|
|
|
echo "Requires:" >> "$pc_file"
|
2020-07-16 12:20:28 +00:00
|
|
|
echo "Libs: -r:%{_prefix}/lib/mono/%{name}/SharpFont.dll" >> "$pc_file"
|
|
|
|
|
echo "Libraries=%{_prefix}/lib/mono/%{name}/SharpFont.dll" >> "$pc_file"
|
2017-05-17 15:00:42 +00:00
|
|
|
|
|
|
|
|
%fdupes %{buildroot}%{_prefix}
|
2016-08-19 14:36:03 +00:00
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root,-)
|
2020-07-16 12:20:28 +00:00
|
|
|
%{_prefix}/lib/mono/gac/SharpFont
|
2016-08-19 14:36:03 +00:00
|
|
|
%{_prefix}/lib/mono/%{name}/
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%{_datadir}/pkgconfig/%{name}.pc
|
|
|
|
|
|
2017-05-17 15:00:42 +00:00
|
|
|
%changelog
|