| 
									
										
										
										
											2007-03-14 11:35:43 +00:00
										 |  |  | #
 | 
					
						
							| 
									
										
										
										
											2011-03-18 09:24:13 +00:00
										 |  |  | # spec file for package perl-Linux-Inotify2
 | 
					
						
							| 
									
										
										
										
											2007-03-14 11:35:43 +00:00
										 |  |  | #
 | 
					
						
							| 
									
										
										
										
											2018-11-08 16:09:27 +00:00
										 |  |  | # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 | 
					
						
							| 
									
										
										
										
											2007-03-14 11:35:43 +00:00
										 |  |  | #
 | 
					
						
							| 
									
										
										
										
											2008-11-21 16:03:32 +00:00
										 |  |  | # 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.
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-11-08 16:09:27 +00:00
										 |  |  | # Please submit bugfixes or comments via https://bugs.opensuse.org/
 | 
					
						
							| 
									
										
										
										
											2007-03-14 11:35:43 +00:00
										 |  |  | #
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Name:           perl-Linux-Inotify2
 | 
					
						
							| 
									
										
										
										
											2018-11-08 16:09:27 +00:00
										 |  |  | Version:        2.1
 | 
					
						
							| 
									
										
										
										
											2012-11-22 10:36:25 +00:00
										 |  |  | Release:        0
 | 
					
						
							| 
									
										
										
										
											2018-11-08 16:09:27 +00:00
										 |  |  | %define cpan_name Linux-Inotify2
 | 
					
						
							|  |  |  | Summary:        Scalable directory/file change notification
 | 
					
						
							|  |  |  | License:        GPL-1.0-or-later OR Artistic-1.0
 | 
					
						
							|  |  |  | Group:          Development/Libraries/Perl
 | 
					
						
							|  |  |  | Url:            https://metacpan.org/release/%{cpan_name}
 | 
					
						
							|  |  |  | Source0:        https://cpan.metacpan.org/authors/id/M/ML/MLEHMANN/%{cpan_name}-%{version}.tar.gz
 | 
					
						
							|  |  |  | Source1:        cpanspec.yml
 | 
					
						
							| 
									
										
										
										
											2007-03-14 11:35:43 +00:00
										 |  |  | BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 | 
					
						
							| 
									
										
										
										
											2012-11-22 10:36:25 +00:00
										 |  |  | BuildRequires:  perl
 | 
					
						
							|  |  |  | BuildRequires:  perl-macros
 | 
					
						
							| 
									
										
										
										
											2018-11-08 16:09:27 +00:00
										 |  |  | BuildRequires:  perl(common::sense)
 | 
					
						
							|  |  |  | Requires:       perl(common::sense)
 | 
					
						
							| 
									
										
										
										
											2010-12-10 11:06:04 +00:00
										 |  |  | %{perl_requires}
 | 
					
						
							| 
									
										
										
										
											2007-03-14 11:35:43 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %description
 | 
					
						
							| 
									
										
										
										
											2018-11-08 16:09:27 +00:00
										 |  |  | This module implements an interface to the Linux 2.6.13 and later Inotify
 | 
					
						
							|  |  |  | file/directory change notification system.
 | 
					
						
							| 
									
										
										
										
											2007-03-14 11:35:43 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-11-08 16:09:27 +00:00
										 |  |  | It has a number of advantages over the Linux::Inotify module:
 | 
					
						
							| 
									
										
										
										
											2007-03-14 11:35:43 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-11-08 16:09:27 +00:00
										 |  |  |    - it is portable (Linux::Inotify only works on x86)
 | 
					
						
							|  |  |  |    - the equivalent of fullname works correctly
 | 
					
						
							|  |  |  |    - it is better documented
 | 
					
						
							|  |  |  |    - it has callback-style interface, which is better suited for
 | 
					
						
							|  |  |  |      integration.
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | As for the inotify API itself - it is a very tricky, and somewhat
 | 
					
						
							|  |  |  | unreliable API. For a good overview of the challenges you might run into,
 | 
					
						
							|  |  |  | see this LWN article: https://lwn.net/Articles/605128/.
 | 
					
						
							| 
									
										
										
										
											2007-03-14 11:35:43 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %prep
 | 
					
						
							| 
									
										
										
										
											2018-11-08 16:09:27 +00:00
										 |  |  | %setup -q -n %{cpan_name}-%{version}
 | 
					
						
							|  |  |  | find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
 | 
					
						
							| 
									
										
										
										
											2007-03-14 11:35:43 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %build
 | 
					
						
							| 
									
										
										
										
											2018-11-08 16:09:27 +00:00
										 |  |  | perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
 | 
					
						
							| 
									
										
										
										
											2010-01-12 12:47:33 +00:00
										 |  |  | make %{?_smp_mflags}
 | 
					
						
							| 
									
										
										
										
											2010-01-27 17:43:21 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %check
 | 
					
						
							| 
									
										
										
										
											2007-03-14 11:35:43 +00:00
										 |  |  | make test
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | %install
 | 
					
						
							|  |  |  | %perl_make_install
 | 
					
						
							|  |  |  | %perl_process_packlist
 | 
					
						
							| 
									
										
										
										
											2018-11-08 16:09:27 +00:00
										 |  |  | %perl_gen_filelist
 | 
					
						
							| 
									
										
										
										
											2007-03-14 11:35:43 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-11-08 16:09:27 +00:00
										 |  |  | %files -f %{name}.files
 | 
					
						
							|  |  |  | %defattr(-,root,root,755)
 | 
					
						
							|  |  |  | %doc Changes README
 | 
					
						
							|  |  |  | %license COPYING
 | 
					
						
							| 
									
										
										
										
											2007-03-14 11:35:43 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %changelog
 |