Skip to content

Commit

Permalink
Add openSUSE RPM spec
Browse files Browse the repository at this point in the history
  • Loading branch information
ray2501 committed Jan 29, 2018
1 parent 004d634 commit 167c7ff
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions tgdbm.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
%{!?directory:%define directory /usr}

%define buildroot %{_tmppath}/%{name}
%define packagename tgdbm

Name: tcl-tgdbm
Summary: Tcl interface to the Gdbm
Version: 0.5
Release: 0
License: GPL
Group: Development/Libraries/Tcl
Source: %{packagename}-%{version}.tar.gz
URL: https://github.com/ray2501/tgdbm
Buildrequires: autoconf
Buildrequires: gdbm-devel
Buildrequires: tcl-devel >= 8.4
Requires: tcl >= 8.4
Requires: libgdbm4
BuildRoot: %{buildroot}

%description
This is a Tcl-Wrapper for the famous gdbm (the GNU-Version of dbm) and
a small database-utility "Qgdbm".

%prep
%setup -q -n %{packagename}

%build
./configure \
--prefix=%{directory} \
--exec-prefix=%{directory} \
--libdir=%{directory}/%{_lib} \
--with-tcl=%{directory}/%{_lib}
make

%install
make DESTDIR=%{buildroot} pkglibdir=%{tcl_archdir}/%{packagename}%{version} install

%clean
rm -rf %buildroot

%files
%defattr(-,root,root)
%{tcl_archdir}/%{packagename}%{version}

0 comments on commit 167c7ff

Please sign in to comment.