%if 0%{?fedora} >= 41 %ifarch %{ix86} %bcond_with php %else %bcond_without php %endif %else %bcond_without php %endif %{!?tcl_version: %global tcl_version %(echo 'puts $tcl_version' | tclsh8)} %{!?tcl_sitearch: %global tcl_sitearch %{_prefix}/%{_lib}/tcl%{tcl_version}} Name: owfs Version: 3.2p4 Release: 12%{?dist} Summary: 1-Wire Virtual File System # some parts licensed differently, see http://owfs.org/index.php?page=license License: GPL-2.0-only URL: http://www.owfs.org/ Source0: https://github.com/%{name}/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz Source1: owserver.xml # install into 'vendor' perl directories; not suitable for upstream Patch0: owfs-0001-install-into-vendor-perl-directories.patch Patch1: owfs-configure-c99.patch # submitted upstream Patch2: owfs-0002-configure-deal-with-colons-in-TCL_PACKAGE_PATH.patch Requires: %{name}-libs%{?_isa} = %{version}-%{release} %{?systemd_requires} BuildRequires: make BuildRequires: systemd BuildRequires: autoconf automake libtool BuildRequires: perl-macros %description OWFS is a user-space virtual file-system providing access to 1-Wire networks. %package libs Summary: Core library providing base functions to other OWFS modules Requires: libusb-compat-0.1 Requires: libftdi BuildRequires: automake autoconf libtool BuildRequires: libusb-compat-0.1-devel libusb1-devel %description libs %{name}-libs is a core library providing base functions to other OWFS modules. %package capi Summary: C-API to develop third-part applications which access 1-Wire networks Requires: %{name}-libs%{?_isa} = %{version}-%{release} %description capi %{name}-capi library on top of libow providing an easy API to develop third-party applications to access to 1-Wire networks. %package devel Summary: Files for development of OWFS applications Requires: %{name}-libs%{?_isa} = %{version} Requires: %{name}-capi%{?_isa} = %{version} %description devel This package contains the libraries and header files that are needed for developing OWFS applications. %package ownet Summary: C-API to develop third-part applications which access 1-Wire networks Requires: %{name}-libs%{?_isa} = %{version}-%{release} %description ownet %{name}-ownet library provides an easy API to develop third-party applications to access to 1-Wire networks. It doesn't depend on owlib, and only supports remote-server connections. This library doesn't include any 1-wire adapter support, except server connections. %package fs Summary: Virtual file-system on top of %{name}-libs providing access to 1-Wire networks Requires: %{name}-libs%{?_isa} = %{version}-%{release} Requires: fuse >= 1.0 Requires: %{name}-server BuildRequires: fuse-devel >= 1.0 %description fs %{name}-fs is a virtual file-system on top of %{name}-libs providing access to 1-Wire networks. %package httpd Summary: HTTP daemon providing access to 1-Wire networks Requires: %{name}-libs%{?_isa} = %{version}-%{release} Requires: %{name}-server %description httpd %{name}-httpd is a HTTP daemon on top of %{name} providing access to 1-Wire networks. %package ftpd Summary: FTP daemon providing access to 1-Wire networks Requires: %{name}-libs%{?_isa} = %{version}-%{release} Requires: %{name}-server %description ftpd %{name}-ftpd is a FTP daemon on top of %{name} providing access to 1-Wire networks. %package server Summary: Back-end server (daemon) for 1-wire control Requires: %{name}-libs%{?_isa} = %{version}-%{release} Requires: firewalld-filesystem BuildRequires: firewalld-filesystem BuildRequires: libftdi-devel %description server %{name}-server is the back-end component of the OWFS 1-wire bus control system. owserver arbitrates access to the bus from multiple client processes. The physical bus is usually connected to a serial or USB port, and other processes connect to owserver over network sockets (TCP port). Communication can be local or over a network. %package tap Summary: Packet sniffer for the owserver protocol Requires: tcl >= 8.1 Requires: %{name}-tcl%{?_isa} = %{version}-%{release} BuildRequires: zlib-devel %description tap %{name}-tap is a packet sniffer for the owserver protocol %package mon Summary: Statistics and settings monitor for owserver Requires: tcl >= 8.1 Requires: %{name}-tcl%{?_isa} = %{version}-%{release} %description mon %{name}-mon is a graphical monitor of owserver’s status %if %{with php} %package php Summary: PHP interface for the 1-wire file-system Requires: %{name}-libs%{?_isa} = %{version}-%{release} Requires: php(zend-abi) = %{php_zend_api} Requires: php(api) = %{php_core_api} Requires: php-cli >= 4.3.0 BuildRequires: swig BuildRequires: php-devel >= 4.3.0 %description php %{name}-php is a php interface for the 1-wire file-system %endif %package tcl Summary: Tcl interface for the 1-wire file-system Requires: %{name}-libs%{?_isa} = %{version}-%{release} Requires: tcl >= 8.1 BuildRequires: tcl8-devel >= 8.1 %description tcl %{name}-tcl is a Tcl interface for the 1-wire file-system %package shell License: MIT Summary: Light weight shell access to owserver and the 1-wire file-system %description shell %{name}-shell is 5 small programs to easily access owserver (and thus the 1-wire system) from shell scripts. owdir, owread, owwrite, owget and owpresent. %prep %autosetup -p1 sed -i -e 's/) Makefile.PL/& INSTALLDIRS=vendor/' \ module/swig/perl5/Makefile.am \ module/ownet/perl5/Makefile.am # Create a sysusers.d config file cat >owfs.sysusers.conf < - 3.2p4-12 - adjust to TCL8 compat packages (rhbz#2340991, rhbz#2337745) * Tue Feb 11 2025 Zbigniew Jędrzejewski-Szmek - 3.2p4-11 - Add sysusers.d config file to allow rpm to create users/groups automatically * Fri Jan 17 2025 Fedora Release Engineering - 3.2p4-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Mon Oct 14 2024 Remi Collet - 3.2p4-9 - rebuild for https://fedoraproject.org/wiki/Changes/php84 * Thu Jul 18 2024 Fedora Release Engineering - 3.2p4-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Apr 12 2024 Remi Collet - 3.2p4-7 - disable PHP extension on 32-bit https://fedoraproject.org/wiki/Changes/php_no_32_bit * Thu Jan 25 2024 Fedora Release Engineering - 3.2p4-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 3.2p4-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Jul 20 2023 Fedora Release Engineering - 3.2p4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Mon Apr 17 2023 Florian Weimer - 3.2p4-3 - Port configure script to C99 (with extensions) * Thu Jan 19 2023 Fedora Release Engineering - 3.2p4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sun Jan 15 2023 Tomasz Torcz - 3.2p4-1 - update to the most recent version - remove patch for issue fixed upstream - switch URL to GitHub (sources are the same, project have migrated) * Sun Aug 21 2022 Tomasz Torcz - 3.2p3-11.1 - adjust to new libusb* package names (fixes rhbz#2113568) * Fri Jul 22 2022 Fedora Release Engineering - 3.2p3-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jan 20 2022 Fedora Release Engineering - 3.2p3-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 3.2p3-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri May 28 2021 Tomasz Torcz - 3.2p3-8 - remove old trigerun * Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek - 3.2p3-8 - Rebuilt for updated systemd-rpm-macros See https://pagure.io/fesco/issue/2583. * Tue Jan 26 2021 Fedora Release Engineering - 3.2p3-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 3.2p3-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jan 29 2020 Fedora Release Engineering - 3.2p3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Wed Jan 29 2020 Tomasz Torcz - 3.2p3-4 - fix GCC10 -fno-common issue (rhbz#1794368) * Thu Jul 25 2019 Fedora Release Engineering - 3.2p3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri Feb 01 2019 Fedora Release Engineering - 3.2p3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Tue Jan 22 2019 Tomasz Torcz - 3.2p3-1 - update to latest 3.2p3 - restore PHP subpackage * Mon Nov 12 2018 Miro Hrončok - 3.2p2-5 - Remove python2 subpackage (#1627428) * Fri Jul 13 2018 Fedora Release Engineering - 3.2p2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Sat Mar 17 2018 Tomasz Torcz - 3.2p2-3 - add patch to include sys/sysmacros.h for major() (rhbz#(rhbz#1554314)) * Thu Feb 08 2018 Fedora Release Engineering - 3.2p2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Jan 31 2018 Tomasz Torcz - 3.2p2-1 - update to latest version - modernize systemd Requires * Fri Jan 12 2018 Iryna Shcherbina - 3.1p5-7 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Thu Aug 03 2017 Fedora Release Engineering - 3.1p5-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 3.1p5-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Jul 07 2017 Igor Gnatenko - 3.1p5-4 - Rebuild due to bug in RPM (RHBZ #1468476) * Mon Jul 03 2017 Tomasz Torcz - 3.1p5-3 - add libftdi to -libs deps (reported by Ruben Kerkhof) * Thu Jun 29 2017 Tomasz Torcz - 3.1p5-2 - bump version to latest 3.1p5 - rename owfs-python to python2-owfs in accordance with https://python-rpm-porting.readthedocs.io/en/latest/naming-scheme.html * Sat Feb 11 2017 Fedora Release Engineering - 3.1p4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Sat Oct 15 2016 Tomasz Torcz - 3.1p4-1 - bump to upstream 3.1p4 release: drop upstreamed & backported patches - remove incomplete python3 fragments from .spec: p3 support does not work in upstream; pyownet is recommended as python binding * Tue Jul 19 2016 Fedora Release Engineering - 3.1p0-8 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Mon Jul 04 2016 Tomasz Torcz - 3.1p0-7 - disable owphp - won't build with rawhide's php7 * Thu Apr 21 2016 Tomasz Torcz - 3.1p0-6 - backport patches for Type=notify * Thu Feb 04 2016 Fedora Release Engineering - 3.1p0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Fri Jan 15 2016 Tomasz Torcz - 3.1p0-4 - backported fix for w1 kernel interface (rhbz #1294589) * Thu Jan 14 2016 Tomasz Torcz - 3.1p0-3 - owfs (FUSE module) started to fork in the meantime – update unit to accomodate that (rhbz #1294589) * Thu Jun 18 2015 Fedora Release Engineering - 3.1p0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Fri Jun 12 2015 Tomasz Torcz - 3.1p0-1 - new upstream release * Tue Feb 10 2015 Tomasz Torcz - 3.0p0-2 - make -devel require C-API files, that what people expect (spotted by Ruben Kerkhof) * Wed Feb 04 2015 Tomasz Torcz - 3.0p0-1 - new upstream release * Wed Jan 07 2015 Tomasz Torcz - 2.9p8-2 - add firewalld service definition for owserver * Tue Oct 21 2014 Tomasz Torcz - 2.9p8-1 - new upstream release - dropped tmpfiles snippet - /run/owfs is now managed by RuntimeDirectory= * Thu Oct 09 2014 Tomasz Torcz - 2.9p7-1 - new upstream release * Sun Aug 17 2014 Fedora Release Engineering - 2.9p5.20140721git6d00fb1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Mon Jul 21 2014 Tomasz Torcz - 2.9p5.20140721git6d00fb1-1 - package snapshot - use upstream systemd units - enable owserver's socket activation - fixed hardcoded tcl_sitearch, patch by Jaroslav Škarvada * Sat Jun 07 2014 Fedora Release Engineering - 2.9p5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Wed May 21 2014 Jaroslav Škarvada - 2.9p5-2 - Rebuilt for https://fedoraproject.org/wiki/Changes/f21tcl86 * Thu May 15 2014 Tomasz Torcz - 2.9p5-1 - latest upstream release * Tue Mar 25 2014 Tomasz Torcz - 2.9p3-1 - new upstream release * Sun Feb 23 2014 Tomasz Torcz - 2.9p2-1 - new upstream release * Sat Aug 03 2013 Fedora Release Engineering - 2.9p1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Tue Jul 09 2013 Tomasz Torcz - 2.9p1-4 - add BR: systemd * Wed Jul 03 2013 Tomasz Torcz - 2.9p1-3 - include main COPYING in -tap and -mon * Mon Jul 01 2013 Tomasz Torcz - 2.9p1-2 - deal with unused-direct-shlib-dependency * Thu Jun 20 2013 Tomasz Torcz - 2.9p1-1 - update to 2.9p1, dropping merged patches - remove perl-owfs bits from .spec, for now - correct python _OW.so perms 0775 -> 0755 * Thu Jun 13 2013 Tomasz Torcz - 2.9p0-4 - furher fixes: - BR: python2-devel for -python; drop -devel req - add tcl dep for owmon and owtap * Fri May 10 2013 Tomasz Torcz - 2.9p0-3 - use /run/owfs instead of /mnt/1wire (ref: https://lists.fedoraproject.org/pipermail/devel/2013-May/182420.html) * Mon May 06 2013 Tomasz Torcz - 2.9p0-2 - fix issues: - add Require: python-devel to python subpackage - synchronise ldconfig requires with glibc provides * Mon Mar 25 2013 Tomasz Torcz - 2.9p0-1 - initial package, based on work by Serg Oskin and Vadim Tkachenko