| 1 |
# -*- rpm-spec -*-
|
| 2 |
|
| 3 |
################ Build Options ###################
|
| 4 |
%define dbtests 1
|
| 5 |
%{?_with_dbtests: %{expand: %%global dbtests 1}}
|
| 6 |
%{?_without_dbtests: %{expand: %%global dbtests 0}}
|
| 7 |
################ End Build Options ################
|
| 8 |
|
| 9 |
Name: EekBoek
|
| 10 |
Summary: Bookkeeping software for small and medium-size businesses
|
| 11 |
License: GPL+ or Artistic
|
| 12 |
Group: Applications/Productivity
|
| 13 |
Version: 1.04.04
|
| 14 |
Release: 2%{?dist}
|
| 15 |
Source: http://www.eekboek.nl/dl/%{name}-%{version}.tar.gz
|
| 16 |
Source1: README.postgres
|
| 17 |
URL: http://www.eekboek.nl
|
| 18 |
BuildRoot: %{_tmppath}/rpm-buildroot-%{name}-%{version}-%{release}
|
| 19 |
|
| 20 |
# The package name is CamelCased. However, for convenience some
|
| 21 |
# of its data is located in files and directories that are all
|
| 22 |
# lowercase. See the %%install section.
|
| 23 |
%global lcname eekboek
|
| 24 |
|
| 25 |
# It's all plain perl, nothing architecture dependent.
|
| 26 |
BuildArch: noarch
|
| 27 |
|
| 28 |
# This package would provide many (perl) modules, but these are
|
| 29 |
# note intended for general use.
|
| 30 |
AutoReqProv: 0
|
| 31 |
|
| 32 |
Requires: perl >= 5.8
|
| 33 |
Requires: perl(Archive::Zip)
|
| 34 |
Requires: perl(Term::ReadLine)
|
| 35 |
Requires: perl(Term::ReadLine::Gnu)
|
| 36 |
Requires: perl(DBI) >= 1.40
|
| 37 |
Requires: perl(DBD::SQLite) >= 1.12
|
| 38 |
|
| 39 |
BuildRequires: perl >= 5.8.8
|
| 40 |
BuildRequires: perl(Module::Build)
|
| 41 |
BuildRequires: perl(IPC::Run3)
|
| 42 |
BuildRequires: perl(Term::ReadLine)
|
| 43 |
BuildRequires: perl(Term::ReadLine::Gnu)
|
| 44 |
BuildRequires: perl(DBI) >= 1.40
|
| 45 |
BuildRequires: perl(DBD::SQLite) >= 1.12
|
| 46 |
BuildRequires: perl(Test::More)
|
| 47 |
BuildRequires: zip
|
| 48 |
|
| 49 |
# For symmetry.
|
| 50 |
%global __zip /usr/bin/zip
|
| 51 |
%global __find /usr/bin/find
|
| 52 |
|
| 53 |
%description
|
| 54 |
EekBoek is a bookkeeping package for small and medium-size businesses.
|
| 55 |
Unlike other accounting software, EekBoek has both a command-line
|
| 56 |
interface (CLI) and a graphical user-interface (GUI, currently under
|
| 57 |
development and not included in this package). Furthermore, it has a
|
| 58 |
complete Perl API to create your own custom applications. EekBoek is
|
| 59 |
designed for the Dutch/European market and currently available in
|
| 60 |
Dutch only. An English translation is in the works (help appreciated).
|
| 61 |
|
| 62 |
EekBoek can make use of several database systems for its storage.
|
| 63 |
Support for the SQLite database is included.
|
| 64 |
For production use, you are invited to install the %{name}-db-postgresql
|
| 65 |
database package.
|
| 66 |
|
| 67 |
%package db-postgresql
|
| 68 |
|
| 69 |
# This package only contains the necessary module(s) for EekBoek
|
| 70 |
# to use the PostgreSQL database.
|
| 71 |
# Installing this package will pull in the main package and
|
| 72 |
# the Perl PostgreSQL modules.
|
| 73 |
# No %%doc required.
|
| 74 |
|
| 75 |
Summary: PostgreSQL database driver for %{name}
|
| 76 |
Group: Applications/Productivity
|
| 77 |
AutoReqProv: 0
|
| 78 |
Requires: %{name} = %{version}-%{release}
|
| 79 |
Requires: perl(DBD::Pg) >= 1.41
|
| 80 |
|
| 81 |
%description db-postgresql
|
| 82 |
EekBoek can make use of several database systems for its storage.
|
| 83 |
This package contains the PostgreSQL database driver for %{name}.
|
| 84 |
|
| 85 |
%prep
|
| 86 |
%setup -q
|
| 87 |
|
| 88 |
# Create docs for the subpackage.
|
| 89 |
cp -p %SOURCE1 .
|
| 90 |
|
| 91 |
# Remove some build helper sources since we BuildRequire them.
|
| 92 |
%{__rm} -fr inc/IPC inc/Module
|
| 93 |
%{__perl} -ni~ -e 'print unless m;^inc/(Module|IPC)/;;' MANIFEST
|
| 94 |
|
| 95 |
# DO NOT convert examples/mutaties.eb and html/intro/mutaties.eb!
|
| 96 |
# These files NEED to be Latin-1 (ISO 8859.1).
|
| 97 |
|
| 98 |
%build
|
| 99 |
%{__perl} Build.PL
|
| 100 |
%{__perl} Build
|
| 101 |
|
| 102 |
# Move some files into better places.
|
| 103 |
mv blib/lib/EB/examples .
|
| 104 |
( cd examples;
|
| 105 |
%{__mv} ../eekboek-mode.el .;
|
| 106 |
%{__rm} -f ../blib/lib/EB/schema/sampledb.ebz;
|
| 107 |
%{__zip} -q ../blib/lib/EB/schema/sampledb.ebz *.eb schema.dat )
|
| 108 |
|
| 109 |
%install
|
| 110 |
%{__rm} -rf %{buildroot}
|
| 111 |
|
| 112 |
# Short names for our libraries.
|
| 113 |
%global ebconf %{_sysconfdir}/%{lcname}
|
| 114 |
%global ebshare %{_datadir}/%{name}-%{version}
|
| 115 |
|
| 116 |
%{__mkdir_p} %{buildroot}%{ebconf}
|
| 117 |
%{__mkdir_p} %{buildroot}%{ebshare}/lib
|
| 118 |
%{__mkdir_p} %{buildroot}%{_bindir}
|
| 119 |
|
| 120 |
# Install the default, system-wide config file.
|
| 121 |
%{__install} -p -m 0644 examples/%{lcname}.conf %{buildroot}%{ebconf}/%{lcname}.conf
|
| 122 |
|
| 123 |
# Create lib dirs and copy files.
|
| 124 |
%{__find} blib/lib -type d -printf "%{__mkdir} %{buildroot}%{ebshare}/lib/%%P\n" | sh -x
|
| 125 |
%{__find} blib/lib ! -type d -printf "%{__install} -p -m 0644 %p %{buildroot}%{ebshare}/lib/%%P\n" | sh -x
|
| 126 |
|
| 127 |
# Create the main script.
|
| 128 |
echo "#!%{__perl}" > %{buildroot}%{_bindir}/ebshell
|
| 129 |
%{__sed} -s "s;# use lib qw(EekBoekLibrary;use lib qw(%{ebshare}/lib;" \
|
| 130 |
< script/ebshell >> %{buildroot}%{_bindir}/ebshell
|
| 131 |
%{__chmod} 0755 %{buildroot}%{_bindir}/ebshell
|
| 132 |
|
| 133 |
# And its manual page.
|
| 134 |
%{__mkdir_p} %{buildroot}%{_mandir}/man1
|
| 135 |
pod2man blib/script/ebshell > %{buildroot}%{_mandir}/man1/ebshell.1
|
| 136 |
|
| 137 |
# End of install section.
|
| 138 |
|
| 139 |
%check
|
| 140 |
%if %{dbtests}
|
| 141 |
%{__perl} Build test
|
| 142 |
%else
|
| 143 |
%{__perl} Build test --skipdbtests
|
| 144 |
%endif
|
| 145 |
|
| 146 |
%clean
|
| 147 |
%{__rm} -rf %{buildroot}
|
| 148 |
|
| 149 |
%files
|
| 150 |
%defattr(-,root,root,-)
|
| 151 |
%doc CHANGES README examples/ doc/html/ TODO
|
| 152 |
%dir %{_sysconfdir}/%{lcname}
|
| 153 |
%config(noreplace) %{_sysconfdir}/%{lcname}/%{lcname}.conf
|
| 154 |
%{ebshare}/
|
| 155 |
%exclude %{ebshare}/lib/EB/DB/Postgres.pm
|
| 156 |
%{_bindir}/ebshell
|
| 157 |
%{_mandir}/man1/*
|
| 158 |
|
| 159 |
%files db-postgresql
|
| 160 |
%defattr(-,root,root,-)
|
| 161 |
%doc README.postgres
|
| 162 |
%{ebshare}/lib/EB/DB/Postgres.pm
|
| 163 |
|
| 164 |
%changelog
|
| 165 |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.04.04-2
|
| 166 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
| 167 |
|
| 168 |
* Fri Jun 19 2009 Johan Vromans <jvromans@squirrel.nl> - 1.04.04-1
|
| 169 |
- Upgrade to upstream 1.04.04.
|
| 170 |
- Obsolete script patch.
|
| 171 |
- Obsolete conversion to UTF-8 of README.
|
| 172 |
|
| 173 |
* Wed Apr 22 2009 Johan Vromans <jvromans@squirrel.nl> - 1.04.03-3
|
| 174 |
- Remove Epoch: since it it not needed.
|
| 175 |
- Make subpackage depend on EVR.
|
| 176 |
|
| 177 |
* Mon Apr 20 2009 Johan Vromans <jvromans@squirrel.nl> - 1:1.04.03-2
|
| 178 |
- Use Epoch: to tighten dependency between basepackage and subpackage.
|
| 179 |
- Use %%global instead of %%define.
|
| 180 |
- Provide README.postgres as source, not as a patch.
|
| 181 |
- Keep timestamps when copying and installing.
|
| 182 |
- Simplify filelist building.
|
| 183 |
- Remove INSTALL from %%doc.
|
| 184 |
|
| 185 |
* Fri Apr 17 2009 Johan Vromans <jvromans@squirrel.nl> - 1.04.03-1
|
| 186 |
- Upgrade to upstream 1.04.03.
|
| 187 |
- Include SQLite with the base package.
|
| 188 |
- Enable database tests since we now require a db driver.
|
| 189 |
|
| 190 |
* Fri Jan 30 2009 Johan Vromans <jvromans@squirrel.nl> - 1.04.02-1
|
| 191 |
- Adapt to Fedora guidelines
|
| 192 |
|
| 193 |
* Sun Jan 26 2009 Johan Vromans <jvromans@squirrel.nl> - 1.04.02
|
| 194 |
- Remove QUICKSTART.
|
| 195 |
|
| 196 |
* Sat Jul 19 2008 Johan Vromans <jvromans@squirrel.nl> - 1.03.90
|
| 197 |
- Remove debian stuff
|
| 198 |
- Don't use unstable.
|
| 199 |
|
| 200 |
* Fri Apr 11 2008 Johan Vromans <jvromans@squirrel.nl> - 1.03.12
|
| 201 |
- Simplify by setting variables from the .in template
|
| 202 |
|
| 203 |
* Sun Apr 01 2007 Johan Vromans <jvromans@squirrel.nl> - 1.03.03
|
| 204 |
- Exclude some Wx files.
|
| 205 |
|
| 206 |
* Sun Nov 05 2006 Johan Vromans <jvromans@squirrel.nl> - 1.03.00
|
| 207 |
- Move DB drivers to separate package, and adjust req/prov.
|
| 208 |
|
| 209 |
* Mon Oct 16 2006 Johan Vromans <jvromans@squirrel.nl> - 1.01.02
|
| 210 |
- Prepare (but don't use) suffixes to separate production and unstable versions.
|
| 211 |
|
| 212 |
* Wed Aug 02 2006 Johan Vromans <jvromans@squirrel.nl> 0.92
|
| 213 |
- New URL. Add Vendor.
|
| 214 |
|
| 215 |
* Fri Jun 09 2006 Johan Vromans <jvromans@squirrel.nl> 0.60
|
| 216 |
- Remove man3.
|
| 217 |
|
| 218 |
* Thu Jun 08 2006 Johan Vromans <jvromans@squirrel.nl> 0.60
|
| 219 |
- Fix example.
|
| 220 |
|
| 221 |
* Mon Jun 05 2006 Johan Vromans <jvromans@squirrel.nl> 0.59
|
| 222 |
- Better script handling.
|
| 223 |
|
| 224 |
* Mon Apr 17 2006 Johan Vromans <jvromans@squirrel.nl> 0.56
|
| 225 |
- Initial provisions for GUI.
|
| 226 |
|
| 227 |
* Wed Apr 12 2006 Johan Vromans <jvromans@squirrel.nl> 0.56
|
| 228 |
- %%config(noreplace) for eekboek.conf.
|
| 229 |
|
| 230 |
* Tue Mar 28 2006 Johan Vromans <jvromans@squirrel.nl> 0.52
|
| 231 |
- Perl Independent Install
|
| 232 |
|
| 233 |
* Mon Mar 27 2006 Johan Vromans <jvromans@squirrel.nl> 0.52
|
| 234 |
- Add "--with dbtests" parameter for rpmbuild.
|
| 235 |
- Resultant rpm may be signed.
|
| 236 |
|
| 237 |
* Sun Mar 19 2006 Johan Vromans <jvromans@squirrel.nl> 0.50
|
| 238 |
- Switch to Build.PL instead of Makefile.PL.
|
| 239 |
|
| 240 |
* Mon Jan 30 2006 Johan Vromans <jvromans@squirrel.nl> 0.37
|
| 241 |
- Add build dep perl(Config::IniFiles).
|
| 242 |
|
| 243 |
* Fri Dec 23 2005 Wytze van der Raay <wytze@nlnet.nl> 0.23
|
| 244 |
- Fixes for x86_64 building problems.
|
| 245 |
|
| 246 |
* Wed Dec 12 2005 Johan Vromans <jvromans@squirrel.nl> 0.22
|
| 247 |
- Change some wordings.
|
| 248 |
- Add man1.
|
| 249 |
|
| 250 |
* Tue Dec 11 2005 Johan Vromans <jvromans@squirrel.nl> 0.21
|
| 251 |
- Add INSTALL QUICKSTART
|
| 252 |
|
| 253 |
* Thu Dec 08 2005 Johan Vromans <jvromans@squirrel.nl> 0.20
|
| 254 |
- Include doc/html.
|
| 255 |
|
| 256 |
* Tue Nov 22 2005 Johan Vromans <jvromans@squirrel.nl> 0.19
|
| 257 |
- More.
|
| 258 |
|
| 259 |
* Sun Nov 20 2005 Jos Vos <jos@xos.nl> 0.17-XOS.0beta1
|
| 260 |
- Initial version.
|