add packaging
authorAnas Nashif <anas.nashif@intel.com>
Wed, 31 Oct 2012 02:46:05 +0000 (19:46 -0700)
committerAnas Nashif <anas.nashif@intel.com>
Wed, 31 Oct 2012 02:46:05 +0000 (19:46 -0700)
packaging/libXaw.spec [new file with mode: 0644]

diff --git a/packaging/libXaw.spec b/packaging/libXaw.spec
new file mode 100644 (file)
index 0000000..4a2b76d
--- /dev/null
@@ -0,0 +1,77 @@
+#
+# Please submit bugfixes or comments via http://bugs.tizen.org/
+#
+
+Name:           libXaw
+Version:        1.0.11
+Release:        1
+License:        MIT
+Summary:        X Athena Widget Set
+Url:            http://www.x.org
+Group:          System Environment/Libraries
+
+Source:         %{name}-%{version}.tar.bz2
+
+# Required by the configury.
+BuildRequires:  ed
+BuildRequires:  pkgconfig(x11)
+BuildRequires:  pkgconfig(xext)
+BuildRequires:  pkgconfig(xmu)
+BuildRequires:  pkgconfig(xorg-macros)
+BuildRequires:  pkgconfig(xpm)
+BuildRequires:  pkgconfig(xproto)
+BuildRequires:  pkgconfig(xt)
+
+%description
+Xaw is a widget set based on the X Toolkit Intrinsics (Xt) Library.
+
+%package devel
+Summary:        Development files for %{name}
+Group:          Development/Libraries
+Requires:       %{name} = %{version}
+Requires:       pkgconfig
+Requires:       pkgconfig(xmu)
+Requires:       pkgconfig(xpm)
+Requires:       pkgconfig(xproto)
+Requires:       pkgconfig(xt)
+
+%description devel
+X.Org X11 libXaw development package
+
+%prep
+%setup -q
+
+%build
+export CFLAGS="${CFLAGS} %{optflags} -Os"
+%reconfigure \
+              --disable-xaw8 --disable-static \
+              --disable-xaw6
+make %{?_smp_mflags}
+
+%install
+
+make install DESTDIR=%{buildroot} INSTALL="install -p"
+rm -f %{buildroot}%{_libdir}/*.la
+
+%remove_docs
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root,-)
+%doc COPYING
+%{_libdir}/libXaw.so.7
+%{_libdir}/libXaw7.so.7
+%{_libdir}/libXaw7.so.7.0.0
+
+%files devel
+%defattr(-,root,root,-)
+%dir %{_includedir}/X11/Xaw
+%doc COPYING
+%{_includedir}/X11/Xaw/*.h
+# FIXME:  Is this C file really supposed to be here?
+%{_includedir}/X11/Xaw/Template.c
+%{_libdir}/libXaw.so
+%{_libdir}/libXaw7.so
+%{_libdir}/pkgconfig/xaw7.pc