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

Fedora spec file and basic packit configuration #96

Merged
merged 3 commits into from
Dec 21, 2024
Merged
Show file tree
Hide file tree
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
29 changes: 29 additions & 0 deletions .packit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
specfile_path: pkg/rpm-fedora/nss-mdns.spec
files_to_sync:
- .packit.yml
- src: pkg/rpm-fedora/nss-mdns.spec
dest: nss-mdns.spec
upstream_package_name: nss-mdns
downstream_package_name: nss-mdns
upstream_tag_template: "v{version}"
srpm_build_deps: []
csmock_args: --cppcheck-add-flag=--enable=style

jobs:
- job: copr_build
trigger: pull_request
targets:
- fedora-all-aarch64
- fedora-all-i386
- fedora-all-ppc64le
- fedora-all-s390x
- fedora-all-x86_64
- job: copr_build
trigger: commit
targets:
- fedora-all-aarch64
- fedora-all-i386
- fedora-all-ppc64le
- fedora-all-s390x
- fedora-all-x86_64
61 changes: 61 additions & 0 deletions pkg/rpm-fedora/nss-mdns.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
Name: nss-mdns
Version: 0.15.1
Release: %autorelease
Summary: glibc plugin for .local name resolution

License: LGPL-2.1+
URL: https://github.com/avahi/nss-mdns
Source0: %{url}/releases/download/v%{version}/%{name}-%{version}.tar.gz

BuildRequires: make
BuildRequires: gcc
BuildRequires: pkgconfig(check)
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
Requires: avahi
Requires(preun,posttrans): authselect

%description
nss-mdns is a plugin for the GNU Name Service Switch (NSS) functionality of
the GNU C Library (glibc) providing host name resolution via Multicast DNS
(aka Zeroconf, aka Apple Rendezvous, aka Apple Bonjour), effectively allowing
name resolution by common Unix/Linux programs in the ad-hoc mDNS domain .local.

nss-mdns provides client functionality only, which means that you have to
run a mDNS responder daemon separately from nss-mdns if you want to register
the local host name via mDNS (e.g. Avahi).


%prep
%autosetup -p1

%build
autoreconf -fiv
%configure
%make_build

%check
%make_build check || (R=$?; cat ./test-suite.log; exit $R)

%install
%make_install


%posttrans
authselect enable-feature with-mdns4 > /dev/null || :

%preun
authselect disable-feature with-mdns4 > /dev/null || :

%{?ldconfig_scriptlets}


%files
%license LICENSE
%doc README.md NEWS.md ACKNOWLEDGEMENTS.md
%{_libdir}/libnss_mdns*.so.2*


%changelog
%autochangelog
Loading