From 2d5e65e5091ed9b7b825ca016d50e1146cc218d7 Mon Sep 17 00:00:00 2001 From: Vaidas Jablonskis Date: Tue, 5 Feb 2013 16:37:39 +0000 Subject: [PATCH 1/2] spec file for rpm package --- entrydns.spec | 52 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 entrydns.spec diff --git a/entrydns.spec b/entrydns.spec new file mode 100644 index 0000000..6090f88 --- /dev/null +++ b/entrydns.spec @@ -0,0 +1,52 @@ +Name: entrydns +Version: 0.0.2 +Release: 1%{?dist} +Summary: Free DNS management service for everyone + +Group: Applications/Internet +License: AGPL +URL: https://entrydns.net +Source0: %{name}-%{version}.tar.gz +BuildArch: x86_64 + +BuildRequires: ruby(abi) = 1.9.1 +BuildRequires: rubygems >= 1.8 +BuildRequires: ruby-devel >= 1.9.3 +BuildRequires: mysql-devel >= 5.5 +BuildRequires: rubygems-devel >= 1.8 +BuildRequires: libxml2-devel +BuildRequires: libxslt-devel +Requires: ruby(abi) = 1.9.1 + +%global entrydns_root /srv/%{name} + +%description +EntryDNS delivers a totally free DNS management service for your enjoyment. +Our aim is to provide a friendly and caring, yet powerful service for your +DNS needs. + + +%prep +%setup -q + + +%build +bundle install --path vendor/ --without development test +# clean not required files and directories +rm -rf test doc spec Capfile Gemfile Gemfile.lock Guardfile Rakefile .git + + +%install +rm -rf %{buildroot} + +install -p -d -m 0755 %{buildroot}%{entrydns_root} +cp -R . %{buildroot}%{entrydns_root} + + +%files +%doc + + + +%changelog + From bb0b08aa58745ff0ec16ead82baf2333356377f8 Mon Sep 17 00:00:00 2001 From: Vaidas Jablonskis Date: Tue, 5 Feb 2013 19:20:08 +0000 Subject: [PATCH 2/2] spec file: work in progress --- entrydns.spec | 53 ++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 44 insertions(+), 9 deletions(-) diff --git a/entrydns.spec b/entrydns.spec index 6090f88..e581e83 100644 --- a/entrydns.spec +++ b/entrydns.spec @@ -1,3 +1,8 @@ +%global _enable_debug_package 0 +%global debug_package %{nil} +%global __os_install_post /usr/lib/rpm/brp-compress %{nil} +%global app_root /srv/entrydns + Name: entrydns Version: 0.0.2 Release: 1%{?dist} @@ -16,9 +21,18 @@ BuildRequires: mysql-devel >= 5.5 BuildRequires: rubygems-devel >= 1.8 BuildRequires: libxml2-devel BuildRequires: libxslt-devel +BuildRequires: rubygem-rake >= 0.9.6 +#BuildRequires: rubygem-therubyracer >= 0.10.2 +#BuildRequires: rubygem-compass >= 0.12.2 +#BuildRequires: rubygem-sass-rails >= 3.2.5 Requires: ruby(abi) = 1.9.1 +Requires: rubygem-nokogiri >= 0.3.3 +Requires: rubygem-tzinfo >= 0.3.29 +Requires: rubygem-erubis >= 2.1.7 +Requires: rubygem-rdoc >= 3.12 +Requires: rubygem-rake >= 0.9.6 +Requires: rubygem-rack >= 1.4.0 -%global entrydns_root /srv/%{name} %description EntryDNS delivers a totally free DNS management service for your enjoyment. @@ -31,22 +45,43 @@ DNS needs. %build +bundle install --path assests_tmp/ --without development test production +bundle exec rake RAILS_ENV=production RAILS_GROUPS=assets assets:precompile bundle install --path vendor/ --without development test -# clean not required files and directories -rm -rf test doc spec Capfile Gemfile Gemfile.lock Guardfile Rakefile .git %install -rm -rf %{buildroot} +# clean not required files and directories +rm -rf test doc spec Capfile Gemfile Gemfile.lock Guardfile Rakefile .git \ + .bundle .gitignore .rspec .rvmrc vendor/ruby/1.9.1/cache/* -install -p -d -m 0755 %{buildroot}%{entrydns_root} -cp -R . %{buildroot}%{entrydns_root} +find vendor/ -type f -wholename "*/cache/*.gem" -delete +find . -type f -name ".git*" -delete +install -p -d -m 0755 %{buildroot}%{app_root} +install -p -d -m 0755 %{buildroot}%{app_root}/log +cp -R app %{buildroot}%{app_root} +cp -R config %{buildroot}%{app_root} +cp -R db %{buildroot}%{app_root} +cp -R lib %{buildroot}%{app_root} +cp -R public %{buildroot}%{app_root} +cp -R script %{buildroot}%{app_root} +cp -R vendor %{buildroot}%{app_root} +cp config.ru %{buildroot}%{app_root} -%files -%doc +%files +%{app_root}/app +%{app_root}/config +%{app_root}/db +%{app_root}/lib +%{app_root}/log/ +%{app_root}/public +%{app_root}/script +%{app_root}/vendor +%{app_root}/config.ru %changelog - +* Tue Feb 5 2013 Vaidas Jablonskis - 1:0.0.2-1 +- initial build