summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-10-31 02:17:54 (GMT)
committerAnas Nashif <anas.nashif@intel.com>2012-10-31 02:17:54 (GMT)
commit4fe66bda47c72d938ced7f7c1506c320c90cfc4b (patch)
treed77e0bd5b15f598bbdc8345ad8fe01535fa4820f
parentb7d59f2f4f162528d906cf3ee558a97da93e3d98 (diff)
downloadxcmiscproto-4fe66bda47c72d938ced7f7c1506c320c90cfc4b.zip
xcmiscproto-4fe66bda47c72d938ced7f7c1506c320c90cfc4b.tar.gz
xcmiscproto-4fe66bda47c72d938ced7f7c1506c320c90cfc4b.tar.bz2
add packaging
-rw-r--r--packaging/xcmiscproto.spec45
1 files changed, 45 insertions, 0 deletions
diff --git a/packaging/xcmiscproto.spec b/packaging/xcmiscproto.spec
new file mode 100644
index 0000000..0f3b790
--- /dev/null
+++ b/packaging/xcmiscproto.spec
@@ -0,0 +1,45 @@
+Name: xcmiscproto
+Summary: X.Org X11 Protocol xcmiscproto
+Version: 1.2.2
+Release: 1
+Group: Development/System
+License: MIT
+URL: http://www.x.org
+Source0: %{name}-%{version}.tar.gz
+Provides: xcmiscproto
+
+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/extensions/*.h
+%{_datadir}/pkgconfig/*.pc \ No newline at end of file