xforms/xforms.spec
2005-05-23 00:21:33 +00:00

111 lines
2.5 KiB
RPMSpec

# $Id: xforms.spec,v 1.8 2005/05/23 00:21:33 katzj Exp $
# Since we're using xmkmf, we must match XFree86's notion of these
%define _x11dir /usr/X11R6
%define _prefix %{_x11dir}
%define _mandir %{_prefix}/man
Name: xforms
Summary: X11 toolkit library
Version: 1.0
Release: 4%{?dist_tag}
License: LGPL
Group: System Environment/Libraries
URL: http://www.nongnu.org/xforms/
Source: http://savannah.nongnu.org/download/xforms/stable.pkg/%{version}/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: XFree86-devel
BuildRequires: libjpeg-devel
BuildRequires: libtiff-devel
# for xforms' import/export of various image types, including: png, sgi
Requires: netpbm-progs
%description
xforms is an X11 toolkit library.
This package contains the runtime libraries for the xforms toolkit.
It has now gone Open Source (LGPL).
%package devel
Summary: Development files for the xforms toolkit
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
# legacy versions included -designer/-static subpkgs
Obsoletes: %{name}-designer < %{version}-%{release}
Provides: %{name}-designer = %{version}-%{release}
Obsoletes: %{name}-static < %{version}-%{release}
Provides: %{name}-static = %{version}-%{release}
%description devel
This package contains development headers and libraries for %{name}.
Install this if you intend to develop / compile programs with %{name}.
%prep
%setup -q
%build
(unset RPM_OPT_FLAGS; xmkmf -a)
make %{?_smp_mflags} \
CDEBUGFLAGS="$RPM_OPT_FLAGS"
%install
rm -rf $RPM_BUILD_ROOT
# makeinstall macro doesn't work for this pkg.
make install install.man DESTDIR="$RPM_BUILD_ROOT"
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc *README Changes Copyright COPYING
%{_libdir}/lib*.so.*
%files devel
%defattr(-,root,root)
%{_bindir}/fd*
%{_includedir}/*
%{_libdir}/lib*.so
%{_libdir}/lib*.a
%{_mandir}/man*/fd*
%changelog
* Sun May 22 2005 Jeremy Katz <katzj@redhat.com> - 1.0-4
- rebuild on all arches
* Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
- rebuilt
* Sun Nov 23 2003 Rex Dieter <rexdieter at sf.net> 0:1.0-0.fdr.2
- update for Fedora Core support
- remove extraneous macros
* Fri May 30 2003 Rex Dieter <rexdieter at sf.net> 0:1.0-0.fdr.1
- BuildRequires: libtiff-devel
- add few more %%doc files.
* Fri Apr 02 2003 Rex Dieter <rexdieter at sf.net> 0:1.0-0.fdr.0
- fedora-ize package.
* Mon Jan 20 2003 Rex Dieter <rexdieter at sf.net> 1.0-0
- 1.0-release
- redhat-ize specfile