xforms/xforms.spec

105 lines
2.4 KiB
RPMSpec

# $Id: xforms.spec,v 1.4 2004/11/08 05:34:32 cvsextras 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: An X11 toolkit library.
Epoch: 0
Version: 1.0
Release: 0.fdr.2%{?dist_tag}.2
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} = %{epoch}:%{version}-%{release}
# legacy versions included -designer/-static subpkgs
Obsoletes: %{name}-designer < %{epoch}:%{version}-%{release}
Provides: %{name}-designer = %{epoch}:%{version}-%{release}
Obsoletes: %{name}-static < %{epoch}:%{version}-%{release}
Provides: %{name}-static = %{epoch}:%{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 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