1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116
|
#
# spec file for package libusbauth-configparser
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017-2018 Stefan Koch <stefan.koch10@gmail.com>
# Copyright (c) 2015 SUSE LLC. All Rights Reserved.
# Author: Stefan Koch <skoch@suse.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: @PACKAGE@
Version: @VERSION@
Summary: Library for USB Firewall including flex/bison parser
URL: https://github.com/kochstefan/usbauth-all/tree/master/libusbauth-configparser
Source: https://github.com/kochstefan/usbauth-all/archive/v%{version}.tar.gz
%if 0%{?suse_version}
Release: 0
License: LGPL-2.1-only
Group: Development/Languages/C and C++
%else
Release: 1%{?dist}
License: LGPLv2
%endif
BuildRequires: pkgconfig(libudev)
BuildRequires: gcc
BuildRequires: bison
BuildRequires: flex
BuildRequires: libtool
%description
Library to read usbauth config file into data structures
%if 0%{?suse_version}
%package -n %{name}%{?suse_version:1}
Summary: Library for USB Firewall including flex/bison parser
Group: System/Libraries
%description -n %{name}%{?suse_version:1}
Library to read usbauth config file into data structures
%endif
%package devel
Summary: Development part of library for USB Firewall including flex/bison parser
%if 0%{?suse_version}
Requires: libusbauth-configparser%{?suse_version:1}
%else
Requires: libusbauth-configparser%{?_isa} = %{version}-%{release}
%endif
%if 0%{?suse_version}
Group: Development/Languages/C and C++
%endif
%description devel
Development part of library to read usbauth config file into data structures
%prep
%autosetup -n usbauth-all-%{version} -p1
%build
pushd %{name}/
autoreconf -f -i
%configure
%make_build
popd
%install
pushd %{name}/
%make_install
popd
%if 0%{?suse_version}
%files -n %{name}%{?suse_version:1}
%defattr(-,root,root)
%else
%files
%endif
%license COPYING
%doc README
%_libdir/lib*.so.1*
%files devel
%if 0%{?suse_version}
%defattr(-,root,root)
%endif
%license libusbauth-configparser/COPYING
%doc libusbauth-configparser/README
%doc %_mandir/*/*
%_includedir/*
%_libdir/lib*.so
%_libdir/pkgconfig/*
%if 0%{?suse_version}
%post -n %{name}%{?suse_version:1} -p /sbin/ldconfig
%postun -n %{name}%{?suse_version:1} -p /sbin/ldconfig
%else
%ldconfig_post
%ldconfig_postun
%endif
%changelog
|