... | ... |
@@ -1,7 +1,7 @@ |
1 | 1 |
Summary: XML-Parser perl module |
2 | 2 |
Name: XML-Parser |
3 | 3 |
Version: 2.41 |
4 |
-Release: 1 |
|
4 |
+Release: 1%{?dist} |
|
5 | 5 |
License: GPL+ |
6 | 6 |
URL: http://search.cpan.org/~toddr/%{name}-%{version}/ |
7 | 7 |
Source0: http://search.cpan.org/CPAN/authors/id/T/TO/TODDR/%{name}-%{version}.tar.gz |
... | ... |
@@ -1,7 +1,7 @@ |
1 | 1 |
Summary: Attr-2.4.47 |
2 | 2 |
Name: attr |
3 | 3 |
Version: 2.4.47 |
4 |
-Release: 1 |
|
4 |
+Release: 1%{?dist} |
|
5 | 5 |
License: GPLv2+ |
6 | 6 |
URL: https://www.gnu.org/software/hurd/community/gsoc/project_ideas/libcap.html |
7 | 7 |
Source0: http://download.savannah.gnu.org/releases/attr/%{name}-%{version}.src.tar.gz |
... | ... |
@@ -1,7 +1,7 @@ |
1 | 1 |
Summary: Utilities for configuring and managing bridge devices |
2 | 2 |
Name: bridge-utils |
3 | 3 |
Version: 1.5 |
4 |
-Release: 1 |
|
4 |
+Release: 1%{?dist} |
|
5 | 5 |
License: GPLv2+ |
6 | 6 |
URL: http://www.linuxfoundation.org/collaborate/workgroups/networking/bridge |
7 | 7 |
Group: System Environment/Base |
... | ... |
@@ -1,7 +1,7 @@ |
1 | 1 |
Summary: Low-level libraries useful for providing data structure handling for C. |
2 | 2 |
Name: glib |
3 | 3 |
Version: 2.42.0 |
4 |
-Release: 1 |
|
4 |
+Release: 1%{?dist} |
|
5 | 5 |
License: LGPLv2+ |
6 | 6 |
URL: http://ftp.gnome.org/pub/gnome/sources/glib/2.42/glib-2.42.0.tar.xz |
7 | 7 |
Group: Applications/System |
... | ... |
@@ -1,7 +1,7 @@ |
1 | 1 |
Summary: Library providing serialization and deserialization support for the JSON format |
2 | 2 |
Name: json-glib |
3 | 3 |
Version: 1.0.2 |
4 |
-Release: 1 |
|
4 |
+Release: 1%{?dist} |
|
5 | 5 |
License: LGPLv2+ |
6 | 6 |
Group: Development/Libraries |
7 | 7 |
Source0: http://ftp.gnome.org/pub/GNOME/sources/json-glib/1.0/%{name}-%{version}.tar.xz |
... | ... |
@@ -4,7 +4,7 @@ |
4 | 4 |
Summary: Kubernetes cluster management |
5 | 5 |
Name: kubernetes |
6 | 6 |
Version: 0.12.0 |
7 |
-Release: 1 |
|
7 |
+Release: 1%{?dist} |
|
8 | 8 |
License: ASL 2.0 |
9 | 9 |
URL: https://github.com/GoogleCloudPlatform/kubernetes |
10 | 10 |
Source0: https://github.com/GoogleCloudPlatform/kubernetes/releases/download/v0.12.0/%{name}.tar.gz |
... | ... |
@@ -1,7 +1,7 @@ |
1 | 1 |
Summary: Libcap-2.24 |
2 | 2 |
Name: libcap |
3 | 3 |
Version: 2.24 |
4 |
-Release: 1 |
|
4 |
+Release: 1%{?dist} |
|
5 | 5 |
License: GPLv2+ |
6 | 6 |
URL: https://www.gnu.org/software/hurd/community/gsoc/project_ideas/libcap.html |
7 | 7 |
Source0: https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/%{name}-%{version}.tar.xz |
... | ... |
@@ -1,7 +1,7 @@ |
1 | 1 |
Summary: A simplified, portable interface to several low-level networking routines |
2 | 2 |
Name: libdnet |
3 | 3 |
Version: 1.11 |
4 |
-Release: 1 |
|
4 |
+Release: 1%{?dist} |
|
5 | 5 |
License: BSD |
6 | 6 |
URL: http://prdownloads.sourceforge.net/libdnet/libdnet-1.11.tar.gz |
7 | 7 |
Group: Applications/System |
... | ... |
@@ -1,7 +1,7 @@ |
1 | 1 |
Summary: GIO-based library with Unix/Linux specific API |
2 | 2 |
Name: libgsystem |
3 | 3 |
Version: 2015.1 |
4 |
-Release: 1 |
|
4 |
+Release: 1%{?dist} |
|
5 | 5 |
Group: Development/Libraries |
6 | 6 |
Source0: http://ftp.gnome.org/pub/GNOME/sources/libgsystem/%{version}/%{name}-%{version}.tar.xz |
7 | 7 |
License: LGPLv2+ |
... | ... |
@@ -3,7 +3,7 @@ |
3 | 3 |
Summary: Simple package manager built on top of hawkey and librepo |
4 | 4 |
Name: libhif |
5 | 5 |
Version: 0.1.7 |
6 |
-Release: 1 |
|
6 |
+Release: 1%{?dist} |
|
7 | 7 |
License: LGPLv2+ |
8 | 8 |
URL: https://github.com/hughsie/libhif |
9 | 9 |
Source0: http://people.freedesktop.org/~hughsient/releases/libhif-%{version}.tar.gz |
... | ... |
@@ -1,7 +1,7 @@ |
1 | 1 |
Summary: A library that provides compression and decompression of file formats used by Microsoft |
2 | 2 |
Name: libmspack |
3 | 3 |
Version: 0.4alpha |
4 |
-Release: 1 |
|
4 |
+Release: 1%{?dist} |
|
5 | 5 |
License: LGPLv2+ |
6 | 6 |
URL: http://www.cabextract.org.uk/libmspack/libmspack-0.4alpha.tar.gz |
7 | 7 |
Group: Applications/System |
... | ... |
@@ -2,7 +2,7 @@ |
2 | 2 |
Summary: SELinux library and simple utilities |
3 | 3 |
Name: libselinux |
4 | 4 |
Version: 2.4 |
5 |
-Release: 1 |
|
5 |
+Release: 1%{?dist} |
|
6 | 6 |
License: Public Domain |
7 | 7 |
Group: System Environment/Libraries |
8 | 8 |
Source0: https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20150202/%{name}-%{version}.tar.gz |
... | ... |
@@ -1,7 +1,7 @@ |
1 | 1 |
Summary: SELinux binary policy manipulation library |
2 | 2 |
Name: libsepol |
3 | 3 |
Version: 2.4 |
4 |
-Release: 1 |
|
4 |
+Release: 1%{?dist} |
|
5 | 5 |
License: LGPLv2+ |
6 | 6 |
Group: System Environment/Libraries |
7 | 7 |
Source0: https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20150202/%{name}-%{version}.tar.gz |
... | ... |
@@ -1,7 +1,7 @@ |
1 | 1 |
Summary: Git for operating system binaries |
2 | 2 |
Name: ostree |
3 | 3 |
Version: 2015.3 |
4 |
-Release: 1 |
|
4 |
+Release: 1%{?dist} |
|
5 | 5 |
Source0: http://ftp.gnome.org/pub/GNOME/sources/ostree/%{version}/%{name}-%{version}.tar.xz |
6 | 6 |
Source1: 91-ostree.preset |
7 | 7 |
Patch0: ostree_syntax_error_fix.patch |
... | ... |
@@ -2,7 +2,7 @@ |
2 | 2 |
Summary: Easy-to-use OO interface to DBI |
3 | 3 |
Name: perl-DBIx-Simple |
4 | 4 |
Version: 1.35 |
5 |
-Release: 1 |
|
5 |
+Release: 1%{?dist} |
|
6 | 6 |
License: Public Domain |
7 | 7 |
Group: Development/Libraries |
8 | 8 |
Source0: http://search.cpan.org/CPAN/authors/id/J/JU/JUERD/DBIx-Simple-%{version}.tar.gz |
... | ... |
@@ -2,7 +2,7 @@ |
2 | 2 |
Summary: An exporter with the features of Sub::Exporter but only core dependencies |
3 | 3 |
Name: perl-Exporter-Tiny |
4 | 4 |
Version: 0.042 |
5 |
-Release: 1 |
|
5 |
+Release: 1%{?dist} |
|
6 | 6 |
License: (GPL+ or Artistic) and Public Domain and (GPL+ or Artistic or CC-BY-SA) |
7 | 7 |
Group: Development/Libraries |
8 | 8 |
URL: http://search.cpan.org/dist/Exporter-Tiny/ |
... | ... |
@@ -2,7 +2,7 @@ |
2 | 2 |
Summary: Provide the stuff missing in List::Util |
3 | 3 |
Name: perl-List-MoreUtils |
4 | 4 |
Version: 0.410 |
5 |
-Release: 1 |
|
5 |
+Release: 1%{?dist} |
|
6 | 6 |
License: GPL+ or Artistic |
7 | 7 |
URL: http://search.cpan.org/dist/List-MoreUtils/ |
8 | 8 |
Source0: http://search.cpan.org/CPAN/authors/id/R/RE/REHSACK/List-MoreUtils-%{version}.tar.gz |
... | ... |
@@ -2,7 +2,7 @@ |
2 | 2 |
Summary: Recursively scan Perl code for dependencies |
3 | 3 |
Name: perl-Module-ScanDeps |
4 | 4 |
Version: 1.18 |
5 |
-Release: 1 |
|
5 |
+Release: 1%{?dist} |
|
6 | 6 |
License: GPL+ or Artistic |
7 | 7 |
Group: Development/Libraries |
8 | 8 |
Source0: http://search.cpan.org/CPAN/authors/id/R/RS/RSCHUPP/Module-ScanDeps-%{version}.tar.gz |
... | ... |
@@ -1,7 +1,7 @@ |
1 | 1 |
Summary: Extra tools for rpm-ostree |
2 | 2 |
Name: rpm-ostree-toolbox |
3 | 3 |
Version: 2015.3 |
4 |
-Release: 1.0 |
|
4 |
+Release: 1.0%{?dist} |
|
5 | 5 |
#VCS: https://github.com/cgwalters/rpm-ostree-toolbox |
6 | 6 |
# This tarball is generated via "make -C packaging -f Makefile.dist-packaging dist-snapshot" |
7 | 7 |
# which is really just a wrapper for "git archive". |
... | ... |
@@ -1,7 +1,7 @@ |
1 | 1 |
Summary: A portable, high level programming interface to various calling conventions |
2 | 2 |
Name: sqlite-autoconf |
3 | 3 |
Version: 3080301 |
4 |
-Release: 1 |
|
4 |
+Release: 1%{?dist} |
|
5 | 5 |
License: Public Domain |
6 | 6 |
URL: http://www.sqlite.org |
7 | 7 |
Group: System Environment/GeneralLibraries |
... | ... |
@@ -1,7 +1,7 @@ |
1 | 1 |
Summary: Connects C/C++/Objective C to some high-level programming languages |
2 | 2 |
Name: swig |
3 | 3 |
Version: 3.0.5 |
4 |
-Release: 1 |
|
4 |
+Release: 1%{?dist} |
|
5 | 5 |
License: GPLv3+ and BSD |
6 | 6 |
URL: http://swig.sourceforge.net/ |
7 | 7 |
Source0: http://downloads.sourceforge.net/project/swig/swig/swig-%{version}/swig-%{version}.tar.gz |
... | ... |
@@ -1,7 +1,7 @@ |
1 | 1 |
Summary: C++ XML Signature and Encryption library. |
2 | 2 |
Name: xml-security-c |
3 | 3 |
Version: 1.5.1 |
4 |
-Release: 1 |
|
4 |
+Release: 1%{?dist} |
|
5 | 5 |
License: Apache Software License |
6 | 6 |
URL: http://pkgs.fedoraproject.org/repo/pkgs/xml-security-c/xml-security-c-1.5.1.tar.gz/2c47c4ec12e8d6abe967aa5e5e99000c/xml-security-c-1.5.1.tar.gz |
7 | 7 |
Group: Applications/System |
... | ... |
@@ -92,6 +92,12 @@ class Package(object): |
92 | 92 |
|
93 | 93 |
if content.find("%{version}") != -1: |
94 | 94 |
content = content.replace('%{version}',self.version) |
95 |
+ |
|
96 |
+ if content.find("%{?dist}") != -1: |
|
97 |
+ content = content.replace('%{?dist}',self.distribution) |
|
98 |
+ |
|
99 |
+ if content.find("%{dist}") != -1: |
|
100 |
+ content = content.replace('%{dist}',self.distribution) |
|
95 | 101 |
|
96 | 102 |
return content |
97 | 103 |
|