Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > by-pkgid > 008f76f4dff7cc95b5e96416c3738a17 > files > 2

libieee1284-0.2.6-1mdk.src.rpm

%define name	libieee1284
%define	version	0.2.6
%define	release	1mdk

%define major	3
%define libname	%{name}_%{major}

Summary:	libieee1284 is a cross-platform library for parallel port access
Name:		%name
Version:	%version
Release:	%release
Source0:	http://cyberelk.net/tim/data/libieee1284/stable/libieee1284-0.2.6.tar.bz2
License:	LGPL
Group:		System/Libraries
BuildRoot:	%{_tmppath}/%{name}-%{version}-root
URL:		http://sourceforge.net/projects/libieee1284/

%description
libieee1284 is a cross-platform library for parallel port access

%package -n %{libname}
Summary:        libieee1284 is a cross-platform library for parallel port access
Group:          System/Libraries
Provides:	%{name} = %{version}-%{release}

%description -n %{libname}
libieee1284 is a cross-platform library for parallel port access

%package -n %{libname}-devel
Summary:        libieee1284 is a cross-platform library for parallel port access

Group:          Development/C
Provides:	%{name}-devel = %{version}-%{release}
Provides:	%{name}0-devel = %{version}-%{release}
Requires:	%{libname} = %{version}-%{release}

%description -n %{libname}-devel
The %{name}-devel package includes the header files and .so libraries
necessary for developing programs which will access parallel port devices 
using the %{name} library.

If you are going to develop programs which will access parallel port
devices, you should install %{name}-devel.  You'll also need to have
the %name package installed.


%package -n %{libname}-static-devel
Summary:        Static library for libieee1284
Group:          Development/C
Provides:	%{name}-static-devel = %{version}-%{release}
Requires:	%{libname}-devel = %{version}-%{release}

%description -n %{libname}-static-devel
The %{name}-devel package includes the static libraries
necessary for developing programs which will access parallel port devices 
using the %{name} library.

If you are going to develop programs which will access parallel port
devices, you should install %{name}-devel.  You'll also need to have
the %name package installed.

%prep
%setup -q

%build
%configure
%make

%install
rm -rf %buildroot
%makeinstall_std

%clean
rm -rf %buildroot

%post -p /sbin/ldconfig -n %{libname}
%postun -p /sbin/ldconfig -n %{libname}

%files -n %{libname}
%defattr(-,root,root)
%doc README
%{_libdir}/*.so.*

%files -n %{libname}-devel
%defattr(-,root,root)
%doc README AUTHORS COPYING ChangeLog INSTALL NEWS TODO
%{_bindir}/libieee1284_test
%{_includedir}/*
%{_libdir}/*.so

%{_libdir}/*.la
%{_mandir}/man3/*

%files -n %{libname}-static-devel
%defattr(-,root,root)
%doc README
%{_libdir}/*.a

%changelog
* Thu Jan  2 2003 Till Kamppeter <till@mandrakesoft.com> 0.2.6-1mdk
- Initial Mandrake release