obexftp/obexftp.spec

109 lines
3.2 KiB
RPMSpec
Raw Permalink Normal View History

Name: obexftp
Version: 0.24.2
Release: 1mamba
Summary: Enables to store and retrieve documents to mobile phones memory
Group: Applications/Networking
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://sourceforge.net/projects/openobex/
Source: http://downloads.sourceforge.net/project/openobex/obexftp/%{version}/obexftp-%{version}-Source.tar.gz
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libbluetooth-devel
BuildRequires: libexpat-devel
BuildRequires: libfuse-devel
BuildRequires: libopenobex-devel
BuildRequires: libperl
BuildRequires: libpython310-devel
BuildRequires: perl-devel
## AUTOBUILDREQ-END
BuildRequires: perl-devel
BuildRequires: ruby-devel
BuildRequires: libopenobex-devel >= 1.7
%description
obexftp enables to store and retrieve documents to mobile phones memory.
%package devel
Summary: Devel package for %{name}
Group: Development/Libraries
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description devel
obexftp enables to store and retrieve documents to mobile phones memory.
This package contains static libraries and header files needed for development.
%debug_package
%prep
%setup -q -n %{name}-%{version}-Source
%build
%cmake -d build \
-DPython_ADDITIONAL_VERSIONS=%{python_version}
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build
#packlist=`find %{buildroot} -name .packlist`
#[ -z "$packlist" ] && exit 1 || cat $packlist | \
# sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \
# sort -u > .packlist && rm $packlist
#
#strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'`
#for dir in `find %{buildroot} -type d | grep $strid`; do
# echo "%dir ${dir#%buildroot}" >> .packlist
#done
#find %{buildroot}/usr/lib/perl5 -name perllocal.pod -exec rm -f {} \;
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_bindir}/obex*
%{_libdir}/libbfb.so.*
%{_libdir}/libmulticobex.so.*
%{_libdir}/libobexftp.so.*
%{perl_vendorarch}/OBEXFTP.pm
%{perl_vendorarch}/auto/OBEXFTP/OBEXFTP.so
%{_libdir}/ruby/vendor_ruby/*/*-linux*/obexftp.so
%{python310_sitelib}/_obexftp.so
%{python310_sitelib}/obexftp.py
%{_mandir}/man1/obexftp.1*
%{_mandir}/man1/obexftpd.1*
%doc AUTHORS License.txt
%files devel
%defattr(-,root,root)
%dir %{_includedir}/bfb
%{_includedir}/bfb/*.h
%dir %{_includedir}/multicobex
%{_includedir}/multicobex/*.h
%dir %{_includedir}/obexftp
%{_includedir}/obexftp/*.h
%{_libdir}/libbfb.so
%{_libdir}/libmulticobex.so
%{_libdir}/libobexftp.so
#%{_libdir}/obexftp.so
%{_libdir}/pkgconfig/obexftp.pc
#%doc ChangeLog NEWS README THANKS TODO
%changelog
* Sun May 30 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.24.2-1mamba
- update to 0.24.2
* Mon Jun 03 2013 Automatic Build System <autodist@mambasoft.it> 0.24-1mamba
- update to 0.24
* Fri Feb 20 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 0.23-1mamba
- automatic update by autodist
* Fri Jun 20 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 0.22-1mamba
- update to 0.22
* Thu Apr 24 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 0.20-1mamba
- package created by autospec