From 4a814233902c7cb8ad5f1cf763f89a39e11b578e Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Tue, 30 Oct 2012 17:14:30 -0700 Subject: [PATCH] add packaging --- packaging/fontsproto.spec | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 packaging/fontsproto.spec diff --git a/packaging/fontsproto.spec b/packaging/fontsproto.spec new file mode 100644 index 0000000..80a4b1e --- /dev/null +++ b/packaging/fontsproto.spec @@ -0,0 +1,45 @@ +Name: fontsproto +Summary: X.Org X11 Protocol fontsproto +Version: 2.1.2 +Release: 1 +Group: Development/System +License: MIT +URL: http://www.x.org +Source0: %{name}-%{version}.tar.gz +Provides: fontsproto + +BuildRequires: pkgconfig +BuildRequires: pkgconfig(xorg-macros) + +# some file to be intalled can be ignored when rpm generates packages +%define _unpackaged_files_terminate_build 0 + +%description +Description: %{summary} + +%prep +%setup -q + +%build + +./autogen.sh +%reconfigure --disable-static \ + --libdir=%{_datadir} \ + --without-xmlto + +# Call make instruction with smp support +make %{?jobs:-j%jobs} + +%install +rm -rf %{buildroot} +%make_install + +%remove_docs + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%{_includedir}/X11/fonts/*.h +%{_datadir}/pkgconfig/*.pc \ No newline at end of file -- 2.7.4