Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libmbus: RPM spec file fixes #208

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions libmbus.spec
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Summary: Open source M-bus (Meter-Bus) library
Name: libmbus
Version: 0.9.0
Release: 1
Source: https://github.com/rscada/%{name}/archive/%{version}.tar.gz
Source: https://github.com/marmaladelane/libmbus/archive/refs/heads/master.zip
URL: https://github.com/rscada/libmbus/
License: BSD
Vendor: Raditex Control AB
Expand Down Expand Up @@ -46,12 +46,15 @@ This package contains all necessary include files and libraries needed
to compile and link applications which use the M-bus (Meter-Bus) library.

%prep -q
%setup -q
# workaround to get it's build
%setup -q -n libmbus-master
# workaround to get it to build:
libtoolize
autoreconf || true
automake --add-missing
autoreconf

%build
./configure --prefix=/usr
./configure --prefix=/usr --libdir=/usr/lib64
make

%install
Expand All @@ -64,11 +67,11 @@ rm -rf "%buildroot"

%files
%defattr (-,root,root)
%doc COPYING README.md
%doc /usr/share/doc/%{name}-%{version}
%{_bindir}/mbus-serial-*
%{_bindir}/mbus-tcp-*
%{_libdir}/libmbus.so*
%{_mandir}/man1/libmbus.1
%{_mandir}/man1/libmbus.1.gz
%{_mandir}/man1/mbus-*

%files devel
Expand Down