diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..84820ba --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +/sfk-1.7.0.tar.gz +/sfk-1.7.1.tar.gz +/sfk-1.7.2.tar.gz +/sfk-1.7.3.tar.gz +/sfk-1.7.4.tar.gz diff --git a/dead.package b/dead.package deleted file mode 100644 index 164cb9a..0000000 --- a/dead.package +++ /dev/null @@ -1,3 +0,0 @@ -2016-05-19: Retired orphaned package, because it was orphaned for -more than six weeks. - diff --git a/sfk.spec b/sfk.spec new file mode 100644 index 0000000..219fc93 --- /dev/null +++ b/sfk.spec @@ -0,0 +1,65 @@ +Name: sfk +Version: 1.7.4 +Release: 1%{?dist} +Summary: The Swiss File Knife File Tree Processor +License: BSD +URL: http://stahlworks.com/sfk/ +Source0: http://downloads.sourceforge.net/project/swissfileknife/1-swissfileknife/%{version}/sfk-%{version}.tar.gz +BuildRequires: autoconf +BuildRequires: automake + +%description +Swiss File Knife (SFK) is a command line multi function tool created by +StahlWorks Technologies which combines many functions in a single, portable +executable that belongs onto every USB stick. Search and convert text files, +instant simple FTP/HTTP server, find duplicate files, compare folders, +treesize, run own commands on all files of a folder. + +Note that Fedora ships the OSE(Open Source Edition) version of sfk. + +%prep +%setup -q +# More friendly to users +%if 0%{?fedora} +sed -i 's|"linux-lib6"|"Fedora %{?fedora} %{?_arch}"|' sfk.cpp +%endif + +%if 0%{?rhel} +sed -i 's|"linux-lib6"|"Red Hat Enterprise Linux %{?rhel} %{?_arch}"|' sfk.cpp +%endif + +%build +autoreconf -fiv +%configure +make %{?_smp_mflags} + +%install +%make_install + +%check +pushd scripts/ +chmod +x 03-sfk-selftest-ux.bat && ./$_ + +%files +%doc AUTHORS ChangeLog +%license COPYING +%{_bindir}/sfk + +%changelog +* Thu Feb 12 2015 Christopher Meng - 1.7.4-1 +- Update to 1.7.4 + +* Thu Jan 29 2015 Christopher Meng - 1.7.3-1 +- Update to 1.7.3 + +* Thu Jul 17 2014 Christopher Meng - 1.7.2-1 +- Update to 1.7.2 + +* Fri Mar 21 2014 Christopher Meng - 1.7.1-1 +- Update to 1.7.1 + +* Fri Feb 14 2014 Christopher Meng - 1.7.0-1 +- Update to 1.7.0 + +* Fri Dec 09 2011 Christopher Meng - 1.6.3-1 +- Initial Package. diff --git a/sources b/sources new file mode 100644 index 0000000..0c897c8 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +aecdd3d5f50d5568216aba4514e9aeae sfk-1.7.4.tar.gz