Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > 1e4844f3d9dc003e43333382adacca37 > files > 13

udftools-1.0.0-0.b3.18.mga3.src.rpm

%define name    udftools
%define version	1.0.0
%define beta	b3
%define tarver	%{version}%{beta}cvs20040419
%define rel	%mkrel 18

%if %beta
%define release 0.%{beta}.%{rel}
%else
%define release %{rel}
%endif

%define major 1
%define libname %mklibname udftools %{major}
%define develname %mklibname -d udftools
%define sdevelname %mklibname -d -s udftools

Name:		%{name}
Version:	%{version}
Release:	%{release}
Epoch:		1
License:	GPLv2+
Group:		System/Kernel and hardware
Provides:	udf
Obsoletes:	udf
Autoreqprov:	off
Summary:	UDF filesystem tools
Source:		%{name}-%{tarver}.tar.bz2
Source1:	pktcdvd.init.d
Source2:	pktcdvd.sysconfig
Source3:	pktcdvd.html
Source4:	pktcdvd-hint.txt
Patch2:		udftools-disable_broken.patch 
Patch3:		udftools-1.0.0b3cvs_add_cdmrw.patch
Patch4:		udftools-1.0.0b3-kernel-2.6.8.1.patch
Patch5:         udftools-1.0.0-gcc4.patch
Patch6:		udftools-open.patch
Patch7:		udftools-include.patch
Patch8:		udftools-1.0.0b3-automake-1.13.patch
URL:		http://sourceforge.net/projects/linux-udf/
Requires(post):	rpm-helper
Requires(preun):rpm-helper
Requires:	%{libname} = %epoch:%version-%release
BuildRequires:	autoconf automake
BuildRequires:	readline-devel
BuildRequires:  ncurses-devel

%description -n udftools
These are tools for UDF file systems as used, e.g.,
on DVD-RAM, DVD+RW, CD-RW. They are also used for
managing Packet-CD/DVD devices and media.


%package -n %{libname}
Summary:	Libraries from %name
Group:		System/Libraries
Provides:	%{libname} = %epoch:%version-%release
Provides:	libudftools = %epoch:%version-%release

%description -n %{libname}
This package contains the libraries meeded by %name.


%package -n %{develname}
Summary:	Devel files from %name
Group:		Development/C
Requires:	%{libname} = %epoch:%version-%release
Provides:	libudftools-devel = %epoch:%version-%release
Provides:	%name-devel = %epoch:%version-%release
Provides:	%{libname}-devel = %epoch:%version-%release
Obsoletes:	%mklibname -d udftools 1

%description -n %{develname}
This is the libraries, include files and other resources you can use
to incorporate %name into applications.

%package -n %sdevelname
Summary:	Static Library for developing applications with %name
Group:		Development/C
Requires:	%develname = %epoch:%version-%release
Provides:	udftools-static-devel = %epoch:%version-%release
Obsoletes:	%mklibname -d -s udftools 1

%description -n %sdevelname
This contains the static library of %name needed for building apps that
link statically to %name.

%prep
%setup -q -n %{name}
#patch2 -p1
%patch3 -p1
%patch4 -p1 -b .kernel-2.6.8.1
%patch5 -p1 -b .gcc4
%patch6 -p0
%patch7 -p0
%patch8 -p1 -b .automake-1_13
perl -pi -e 's! udfct/Makefile! udfct/Makefile cdmrw/Makefile!' configure.in
perl -pi -e 's! udfct! udfct cdmrw!' Makefile.am

%build
%define _disable_ld_no_undefined 1
autoreconf --force --install
%configure2_5x --enable-shared
%make

%install
rm -Rf $RPM_BUILD_ROOT
%makeinstall_std
ln -s %_bindir/mkudffs %buildroot/%_bindir/mkfs.udffs
ln -s %_bindir/udffsck %buildroot/%_bindir/fsck.udffs

install -d %buildroot/%_initrddir
install -d %buildroot/%_sysconfdir/sysconfig

install -m 755 %{SOURCE1} %buildroot/%_initrddir/pktcdvd
install -m 644 %{SOURCE2} %buildroot/%_sysconfdir/sysconfig/pktcdvd
cp %{SOURCE3} doc/pktcdvd.html
cp %{SOURCE4} doc/pktcdvd-hint.txt

%clean
rm -Rf $RPM_BUILD_ROOT

%post
%_post_service pktcdvd

%preun
%_preun_service pktcdvd


%files
%defattr (- ,root,root)
%doc ChangeLog AUTHORS doc/pktcdvd*
%{_bindir}/*
%attr (0755,root,root) %{_initrddir}/pktcdvd
%config (noreplace) %{_sysconfdir}/sysconfig/pktcdvd
%{_mandir}/man1/*.1*
%{_mandir}/man8/*.8*

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

%files -n %{develname}
%defattr(-, root, root)
%_libdir/*.so
%_libdir/*.la

%files -n %sdevelname
%defattr(-,root,root)
%{_libdir}/lib*.a





%changelog

* Mon Jan 14 2013 umeabot <umeabot> 1:1.0.0-0.b3.18.mga3
+ Revision: 384949
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Thu Jan 03 2013 cjw <cjw> 1:1.0.0-0.b3.17.mga3
+ Revision: 337900
- patch8: fix build with automake 1.13

* Sat May 12 2012 colin <colin> 1:1.0.0-0.b3.16.mga2
+ Revision: 235420
- Add LSB headers to initscripts (mga#5262)
- Split out small bzipped sources to store as plain text.

* Fri May 20 2011 cjw <cjw> 1:1.0.0-0.b3.14.mga1
+ Revision: 99988
- clean up spec

  + misc <misc>
    - increase release after importing from Mandriva
    - imported package udftools