173 lines
4.5 KiB
RPMSpec
173 lines
4.5 KiB
RPMSpec
Name: attr
|
|
Version: 2.5.1
|
|
Release: 1mamba
|
|
Summary: Commands for Manipulating Filesystem Extended Attributes
|
|
Group: System/Kernel and Hardware
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Davide Madrisan <davide.madrisan@gmail.com>
|
|
URL: https://savannah.nongnu.org/projects/attr
|
|
Source: http://download-mirror.savannah.gnu.org/releases/attr/attr-%{version}.tar.gz
|
|
Patch0: %{name}-2.4.46-build.patch
|
|
License: GPL
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: glibc-devel
|
|
## AUTOBUILDREQ-END
|
|
%ifarch x86_64_disabled
|
|
BuildRequires: gcc-multilib
|
|
BuildRequires: glibc-multilib-devel
|
|
%endif
|
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
%debug_package
|
|
|
|
%description
|
|
Commands for Manipulating Filesystem Extended Attributes.
|
|
|
|
%package -n lib%{name}
|
|
Group: System/Libraries
|
|
Summary: Shared libraries for %{name}
|
|
|
|
%description -n lib%{name}
|
|
This package contains shared libraries for handling POSIX extended attributes.
|
|
|
|
%package -n lib%{name}-devel
|
|
Group: Development/Libraries
|
|
Summary: Development files for %{name}
|
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
%description -n lib%{name}-devel
|
|
This package contains libraries and header files for developing applications that use %{name}.
|
|
|
|
%package -n lib32-lib%{name}
|
|
Summary: Commands for Manipulating Filesystem Extended Attributes
|
|
Group: System/Libraries
|
|
|
|
%description -n lib32-lib%{name}
|
|
Commands for Manipulating Filesystem Extended Attributes (32 bit).
|
|
|
|
%package -n lib32-lib%{name}-devel
|
|
Summary: Devel package for lib32-lib%{name}
|
|
Group: Development/Libraries
|
|
Requires: lib32-lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
Requires: lib%{name}-devel = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
%description -n lib32-lib%{name}-devel
|
|
This package contains static libraries and header files needed for development.
|
|
|
|
%prep
|
|
%setup -q
|
|
#%patch0 -p1
|
|
|
|
%build
|
|
%configure
|
|
|
|
%make \
|
|
%if "%{_host}" != "%{_build}"
|
|
LIBTOOL="/usr/%{_host}/usr/bin/libtool --tag CXX"
|
|
%endif
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
%makeinstall
|
|
#% makeinstall install-dev
|
|
#% makeinstall install-lib
|
|
|
|
%find_lang %{name}
|
|
|
|
# remove unpackaged files
|
|
rm -fr %{buildroot}%{_datadir}/doc/attr
|
|
# already provided by manpages
|
|
rm -f %{buildroot}%{_mandir}/man2/*attr.2*
|
|
|
|
%ifarch x86_64_disabled
|
|
# x86_64 lib32 support
|
|
make clean
|
|
|
|
./configure \
|
|
--prefix=%{_prefix} \
|
|
--libdir=/lib \
|
|
--libexecdir=/lib \
|
|
CC="%{_target_platform}-gcc -m32"
|
|
|
|
make
|
|
|
|
make install DESTDIR=`pwd`/lib32
|
|
make install DESTDIR=`pwd`/lib32 install-dev
|
|
make install DESTDIR=`pwd`/lib32 install-lib
|
|
|
|
cp -a lib32/lib %{buildroot}/
|
|
%endif
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%post -n lib%{name} -p /sbin/ldconfig
|
|
%postun -n lib%{name} -p /sbin/ldconfig
|
|
|
|
%files -f %{name}.lang
|
|
%defattr(-,root,root)
|
|
%config(noreplace) %{_sysconfdir}/xattr.conf
|
|
%{_bindir}/%{name}
|
|
%{_bindir}/getfattr
|
|
%{_bindir}/setfattr
|
|
%{_mandir}/man1/%{name}.*
|
|
%{_mandir}/man1/getfattr.*
|
|
%{_mandir}/man1/setfattr.*
|
|
#%{_mandir}/man5/attr.*
|
|
%doc doc/COPYING
|
|
|
|
%files -n lib%{name}
|
|
%defattr(-,root,root)
|
|
%{_libdir}/lib%{name}.so.*
|
|
|
|
%files -n lib%{name}-devel
|
|
%defattr(-,root,root)
|
|
%{_includedir}/%{name}
|
|
%{_libdir}/lib%{name}.a
|
|
%{_libdir}/lib%{name}.la
|
|
%{_libdir}/lib%{name}.so
|
|
%{_libdir}/pkgconfig/libattr.pc
|
|
%{_mandir}/man3/attr_*
|
|
%doc README
|
|
|
|
%ifarch x86_64_disabled
|
|
%files -n lib32-lib%{name}
|
|
%defattr(-,root,root)
|
|
/lib/lib%{name}.so.*
|
|
%doc doc/COPYING
|
|
|
|
%files -n lib32-lib%{name}-devel
|
|
%defattr(-,root,root)
|
|
/lib/lib%{name}.a
|
|
/lib/lib%{name}.la
|
|
/lib/lib%{name}.so
|
|
%endif
|
|
|
|
%changelog
|
|
* Wed Mar 17 2021 Automatic Build System <autodist@mambasoft.it> 2.5.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Fri Mar 12 2021 Automatic Build System <autodist@mambasoft.it> 2.5.0-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sat Jul 28 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4.48-1mamba
|
|
- update to 2.4.48
|
|
|
|
* Thu May 23 2013 Automatic Build System <autodist@mambasoft.it> 2.4.47-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Mon Jan 30 2012 Davide Madrisan <davide.madrisan@gmail.com> 2.4.46-2mamba
|
|
- remove manpages conflicting with manpages
|
|
|
|
* Sun Jan 29 2012 Davide Madrisan <davide.madrisan@gmail.com> 2.4.46-1mamba
|
|
- update tp 2.4.46
|
|
- specfile recreated using autospec
|
|
- move libraries to /%%{_lib}
|
|
|
|
* Wed Jul 16 2008 gil <puntogil@libero.it> 2.4.43-1mamba
|
|
- update to 2.4.43
|
|
|
|
* Wed Nov 28 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 1-1mamba
|
|
- package created by autospec
|