[system-config-repo] Initial import (bz #1055005).
leamas
leamas at fedoraproject.org
Tue Jan 21 16:13:09 UTC 2014
commit 17634d53ba5539dd192efe237839d8ff698e68a3
Author: Alec Leamas <leamas.alec at gmail.com>
Date: Tue Jan 21 17:12:32 2014 +0100
Initial import (bz #1055005).
.gitignore | 1 +
sources | 1 +
system-config-repo.spec | 75 +++++++++++++++++++++++++++++++++++++++++++++++
version | 6 ++++
4 files changed, 83 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..f975194 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/system-config-repo-0-3318cd6.tar.gz
diff --git a/sources b/sources
index e69de29..cf20476 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+b3f01d65f4e465563feda2535d71858c system-config-repo-0-3318cd6.tar.gz
diff --git a/system-config-repo.spec b/system-config-repo.spec
new file mode 100644
index 0000000..68a3105
--- /dev/null
+++ b/system-config-repo.spec
@@ -0,0 +1,75 @@
+%global __python %{__python3}
+
+%global commit 3318cd68703a24754130c8a4ea06c1dc5741cbf7
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+%global gitdate 20140117
+
+Name: system-config-repo
+Version: 0
+Release: 1.%{gitdate}git%{shortcommit}%{?dist}
+Summary: Administrate a single yum repository file
+
+License: MIT
+URL: https://github.com/leamas/system-config-repo
+Group: Development/System
+Source0: %{url}/archive/%{commit}/%{name}-0-%{shortcommit}.tar.gz
+ # Created by tools/make_rpm, left in dist directory.
+Source1: version
+BuildArch: noarch
+
+Buildrequires: python3-devel
+BuildRequires: desktop-file-utils
+Requires: gtk3
+Requires: hicolor-icon-theme
+Requires: python(abi) = %{python3_version}
+Requires: python3-gobject
+Requires: sudo
+
+
+%description
+system-config-repo provides a graphical interface to a single yum repository
+file in /etc/yum.repos.d. Using the GUI user can inspect and modify whether
+the repository is enabled and/or signed. It's also possible to see the
+underlying file.
+
+Application is primarily intended as a GUI for packaged 3rd-party
+repositories but is designed to work in a consistent way for any
+repository file.
+
+
+%prep
+%setup -qn %{name}-%{commit}
+cp %{SOURCE1} version
+
+
+%build
+
+
+%install
+make DESTDIR=%{buildroot} install
+desktop-file-validate \
+ %{buildroot}%{_datadir}/applications/system-config-repo.desktop
+
+
+%post
+/usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || :
+/usr/bin/update-desktop-database &> /dev/null || :
+
+%postun
+/usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || :
+/usr/bin/update-desktop-database &> /dev/null || :
+
+
+%files
+%doc README.md LICENSE
+%{_bindir}/system-config-repo
+%{_datadir}/system-config-repo
+%{_datadir}/mime/packages/x-yum-repositories.xml
+%{_datadir}/applications/system-config-repo.desktop
+%{_mandir}/man1/system-config-repo*
+%attr(440,-,-) %config(noreplace) /etc/sudoers.d/system-config-repo
+
+
+%changelog
+* Mon Jan 20 2014 Alec Leamas <leamas.alec at gmail.com> - 1.20140117git3318cd6
+- Initial release.
diff --git a/version b/version
new file mode 100644
index 0000000..a2b4720
--- /dev/null
+++ b/version
@@ -0,0 +1,6 @@
+# BEWARE: this is sourced both as a python and a bash file.
+# Furthermore, it's handled by git smudge/clean filters on checkin/checkout.
+
+VERSION="0"
+COMMIT="3318cd6"
+DATE="2014-01-20 22:04:43 +0100"
More information about the scm-commits
mailing list