Skip to content
Browse files

Added a "release" to packages

  • Loading branch information...
1 parent 2cd2147 commit 13ecc10005f0f386dadeeb0782d715989e7f4a16 Alvaro Saurin committed
Showing with 6 additions and 2 deletions.
  1. +2 −0 README.md
  2. +1 −0 as/recipe/frozenpkg/frozen.py
  3. +2 −1 as/recipe/frozenpkg/frozenrpm.py
  4. +1 −1 setup.py
View
2 README.md
@@ -1,3 +1,5 @@
+
+
Introduction
============
View
1 as/recipe/frozenpkg/frozen.py
@@ -56,6 +56,7 @@ def install(self):
self.pkg_name = self.options['pkg-name']
self.pkg_version = self.options.get('pkg-version', '0.1')
+ self.pkg_release = self.options.get('pkg-release', '1')
self.pkg_vendor = self.options.get('pkg-vendor', 'unknown')
self.pkg_packager = self.options.get('pkg-packager', 'unknown')
self.pkg_url = self.options.get('pkg-url', 'unknown')
View
3 as/recipe/frozenpkg/frozenrpm.py
@@ -38,7 +38,7 @@
Name: @PKG_NAME@
Version: @PKG_VERSION@
-Release: 0
+Release: @PKG_RELEASE@
Summary: @PKG_NAME@
URL: @PKG_URL@
License: @PKG_LICENSE@
@@ -93,6 +93,7 @@ def install (self):
rpmspec = rpmspec.replace("@PKG_NAME@", self.pkg_name)
rpmspec = rpmspec.replace("@PKG_VENDOR@", self.pkg_vendor)
rpmspec = rpmspec.replace("@PKG_VERSION@", self.pkg_version)
+ rpmspec = rpmspec.replace("@PKG_RELEASE@", self.pkg_release)
rpmspec = rpmspec.replace("@PKG_PACKAGER@", self.pkg_packager)
rpmspec = rpmspec.replace("@PKG_URL@", self.pkg_url)
rpmspec = rpmspec.replace("@PKG_LICENSE@", self.pkg_license)
View
2 setup.py
@@ -4,7 +4,7 @@
import os
-__VERSION__ = '0.2.20'
+__VERSION__ = '0.2.21'

0 comments on commit 13ecc10

Please sign in to comment.
Something went wrong with that request. Please try again.