File libfetch.spec of Package libfetch

Name: libfetch
Version: 2.33
Release: 3
Summary: URL based download library
Group: System/Libraries
URL: http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/net/%name
License: BSD-3-Clause
Source0: ftp://ftp.archlinux.org/other/%name/%name-%version.tar.gz
Source1: Makefile
BuildRequires: openssl-devel

%description
%summary.


%package devel
Summary: Development files for %name
Group: Development/Languages/C and C++
Requires: %name = %version-%release

%description devel
Development files for %name.


%package devel-static
Summary: Static %name
Group: Development/Languages/C and C++
Requires: %name-devel = %version-%release

%description devel-static
Static %name.


%prep
%setup -q
install -p -m 0644 %{S:1} ./Makefile


%build
export CFLAGS="%optflags"
make %{?_smp_mflags} \
	FETCH_WITH_INET6=true \
	FETCH_WITH_LFS=true \
	FETCH_WITH_OPENSSL=true


%install
%make_install prefix=%_prefix libdir=%_libdir


%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig


%files
%defattr(-,root,root)
%_libdir/*.so


%files devel
%defattr(-,root,root)
%_includedir/*
%_mandir/man3/*


%files devel-static
%defattr(-,root,root)
%_libdir/*.a


%changelog
openSUSE Build Service is sponsored by