[torrent-file-editor] initial version of package

ivanromanov ivanromanov at fedoraproject.org
Thu Jan 1 23:38:23 UTC 2015


commit 0d791a8f1471b3ac29cbacd14e98335c32b4dc56
Author: Ivan Romanov <drizt at land.ru>
Date:   Fri Jan 2 04:38:18 2015 +0500

    initial version of package

 .gitignore               |    1 +
 sources                  |    1 +
 torrent-file-editor.spec |   84 ++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 86 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..3a6eb29 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/torrent-file-editor-0.1.0.tar.gz
diff --git a/sources b/sources
index e69de29..e016117 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+74aa307d8809f1e77262ad4c75033f02  torrent-file-editor-0.1.0.tar.gz
diff --git a/torrent-file-editor.spec b/torrent-file-editor.spec
new file mode 100644
index 0000000..db1aedd
--- /dev/null
+++ b/torrent-file-editor.spec
@@ -0,0 +1,84 @@
+Name:           torrent-file-editor
+Version:        0.1.0
+Release:        3%{?dist}
+Summary:        Qt based GUI tool designed to create and edit .torrent files
+
+License:        GPLv3+
+URL:            http://sf.net/projects/%{name}
+Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
+
+BuildRequires:  cmake
+BuildRequires:  pkgconfig(QtGui)
+BuildRequires:  pkgconfig(QtCore)
+BuildRequires:  pkgconfig(QJson)
+BuildRequires:  desktop-file-utils
+
+# Package puts icons to hicolor-icon-theme folders
+Requires:       hicolor-icon-theme
+
+%description
+Qt based GUI tool designed to create and edit .torrent files.
+
+Features
+ - create .torrent file from scratch
+ - edit .torrent file in user-friendly way
+ - edit .torrent file in tree format
+ - edit .torrent file in JSON format
+ - add, remove and interchange files in .torrent file
+ - support for codings
+
+
+%prep
+%setup -q
+
+%build
+%cmake
+make %{?_smp_mflags}
+
+%install
+%make_install
+
+%check
+# Menu file is being installed when make install
+# so it need only to check this allready installed file
+desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
+
+%post
+# Desktop file has MimeType field. Need to update MIME types database.
+/usr/bin/update-desktop-database &> /dev/null || :
+
+# Update icons cache
+/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
+
+%postun
+/usr/bin/update-desktop-database &> /dev/null || :
+
+if [ $1 -eq 0 ] ; then
+    /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
+    /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+fi
+
+%posttrans
+/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+
+%files
+%doc README.md LICENSE
+%{_bindir}/%{name}
+%{_datadir}/applications/%{name}.desktop
+%{_datadir}/icons/hicolor/*/apps/%{name}.png
+
+
+%changelog
+* Sun Dec 21 2014 Ivan Romanov <drizt at land.ru> - 0.1.0-3
+- corrected updating icon cache
+- added updating MIME type database
+
+* Sat Dec 20 2014 Ivan Romanov <drizt at land.ru> - 0.1.0-2
+- Corrected sf source path
+- Corrected project url
+- Added hicolor-icon-theme to requires
+- Improved description
+- Use check section for desktop file validation
+
+* Sat Dec 20 2014 Ivan Romanov <drizt at land.ru> - 0.1.0-1
+- Initial version of package


More information about the scm-commits mailing list