Sophie

Sophie

distrib > Fedora > 13 > i386 > media > updates-src > by-pkgid > 95070329c727049413dc375d68b88ed7 > files > 3

mktorrent-1.0-4.fc13.src.rpm

Name:           mktorrent
Version:        1.0
Release:        4%{?dist}
Summary:        Command line utility to create BitTorrent metainfo files

Group:          Applications/File
License:        GPLv2+
URL:            http://mktorrent.sourceforge.net/
Source0:        http://downloads.sourceforge.net/mktorrent/mktorrent-%{version}.tar.gz
Source1:        http://mktorrent.sourceforge.net/index.html
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  openssl-devel

%description
Command line utility to create BitTorrent metainfo files.
See --help option for mktorrent command for details on usage.

%prep
%setup -q
cp -p %{SOURCE1} mktorrent.html
# Use openssl sha1 routine rather than included one.
rm sha1.c sha1.h

%build
%ifarch alpha ia64 ppc64 s390x sparc64 x86_64
%global largefiles 0
%else
%global largefiles 1
%endif

make %{?_smp_mflags} USE_LARGE_FILES=%{largefiles}  USE_PTHREADS=1 \
       USE_OPENSSL=1 USE_LONG_OPTIONS=1  CFLAGS="%{optflags}"

%install
rm -rf %{buildroot}
make install USE_LARGE_FILES=%{largefiles}  USE_PTHREADS=1 \
       USE_OPENSSL=1 USE_LONG_OPTIONS=1 CFLAGS="%{optflags}" \
       PREFIX=%{buildroot}%{_prefix} INSTALL="install -p"

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%{_bindir}/mktorrent
%doc COPYING mktorrent.html

%changelog
* Sat Apr 24 2010 Steve Traylen <steve.traylen@cern.ch> - 1.0-4
- First official release for Fedora/EPEL

* Tue Apr 20 2010 Steve Traylen <steve.traylen@cern.ch> - 1.0-3
- Enable large file support on 32bit.

* Tue Mar 23 2010 Steve Traylen <steve.traylen@cern.ch> - 1.0-2
- Preserve timestamps.

* Tue Mar 23 2010 Steve Traylen <steve.traylen@cern.ch> - 1.0-1
- Initial spec file.