commit 69aa6ddb22b0080b7cf415547ef13e9c62a9a30c
Author: Arkadiusz Miśkiewicz <[email protected]>
Date:   Sun May 24 14:13:36 2015 +0200

    - initial

 fonts-TTF-KDE-Oxygen.spec | 77 +++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 77 insertions(+)
---
diff --git a/fonts-TTF-KDE-Oxygen.spec b/fonts-TTF-KDE-Oxygen.spec
new file mode 100644
index 0000000..0b447ca
--- /dev/null
+++ b/fonts-TTF-KDE-Oxygen.spec
@@ -0,0 +1,77 @@
+Summary:       Oxygen fonts created by the KDE Community
+Name:          fonts-TTF-KDE-Oxygen
+Version:       5.3.0
+Release:       1
+License:       OFL or GPLv3 with exceptions
+Group:         Fonts
+Source0:       
http://download.kde.org/stable/plasma/%{version}/oxygen-fonts-%{version}.tar.xz
+# Source0-md5: 1899f95757694bf849ff0661797e09d2
+Source1:       61-oxygen-sans.conf
+Source2:       61-oxygen-mono.conf
+URL:           http://www.kde.org/
+BuildRequires: cmake
+BuildRequires: fontforge
+Requires(post,postun): fontpostinst
+Requires:      %{_fontsdir}/TTF
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                _ttffontsdir    %{_fontsdir}/TTF
+
+%description
+Oxygen fonts created by the KDE Community.
+
+%package devel
+Summary:       Header files for %{name} development
+Summary(pl.UTF-8):     Pliki nagłówkowe dla programistów używających %{name}
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+
+%description devel
+Header files for %{name} development.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe dla programistów używających %{name}.
+
+%prep
+%setup -q -n oxygen-fonts-%{version}
+
+%build
+install -d build
+cd build
+%{cmake} \
+       -DOXYGEN_FONT_INSTALL_DIR=%{_ttffontsdir} \
+       ..
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d 
$RPM_BUILD_ROOT{%{_ttffontsdir},%{_sysconfdir}/fonts/conf.d,%{_datadir}/fontconfig/conf.avail}
+
+%{__make} -C build install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+cp -p %{SOURCE1} 
$RPM_BUILD_ROOT%{_datadir}/fontconfig/conf.avail/61-oxygen-sans.conf
+cp -p %{SOURCE2} 
$RPM_BUILD_ROOT%{_datadir}/fontconfig/conf.avail/61-oxygen-mono.conf
+
+ln -s %{_datadir}/fontconfig/conf.avail/61-oxygen-sans.conf 
$RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d
+ln -s %{_datadir}/fontconfig/conf.avail/61-oxygen-mono.conf 
$RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+fontpostinst TTF
+
+%postun
+fontpostinst TTF
+
+%files
+%defattr(644,root,root,755)
+%{_ttffontsdir}/Oxygen*.ttf
+%{_datadir}/fontconfig/conf.avail/61-oxygen-*.conf
+%{_sysconfdir}/fonts/conf.d/61-oxygen-*.conf
+
+%files devel
+%defattr(644,root,root,755)
+%{_libdir}/cmake/OxygenFont
+
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/fonts-TTF-KDE-Oxygen.git/commitdiff/69aa6ddb22b0080b7cf415547ef13e9c62a9a30c

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to